Untitled

 avatar
unknown
plain_text
a year ago
2.4 kB
6
Indexable
../../chrome/browser/ui/views/toolbar/samsung/split_screen_button.cc(57,29): error: no matching constructor for initialization of 'views::WebView'
   57 |   auto* left_web_view = new views::WebView(profile);
      |                             ^              ~~~~~~~
../..\ui/views/controls/webview/webview.h(50,12): note: candidate constructor not viable: cannot convert argument of incomplete type 'Profile *' to 'content::BrowserContext *' for 1st argument
   50 |   explicit WebView(content::BrowserContext* browser_context = nullptr);
      |            ^
../..\ui/views/controls/webview/webview.h(52,3): note: candidate constructor not viable: cannot convert argument of incomplete type 'Profile *' to 'const WebView' for 1st argument
   52 |   WebView(const WebView&) = delete;
      |   ^
../../chrome/browser/ui/views/toolbar/samsung/split_screen_button.cc(62,30): error: no matching constructor for initialization of 'views::WebView'
   62 |   auto* right_web_view = new views::WebView(profile);
      |                              ^              ~~~~~~~
../..\ui/views/controls/webview/webview.h(50,12): note: candidate constructor not viable: cannot convert argument of incomplete type 'Profile *' to 'content::BrowserContext *' for 1st argument
   50 |   explicit WebView(content::BrowserContext* browser_context = nullptr);
      |            ^
../..\ui/views/controls/webview/webview.h(52,3): note: candidate constructor not viable: cannot convert argument of incomplete type 'Profile *' to 'const WebView' for 1st argument
   52 |   WebView(const WebView&) = delete;
      |   ^
../../chrome/browser/ui/views/toolbar/samsung/split_screen_button.cc(71,81): error: no member named 'GetView' in 'content::WebContents' 
   71 |   views::WebView* current_web_view = static_cast<views::WebView*>(web_contents->GetView()->GetContentNativeView());
      |                                                                   ~~~~~~~~~~~~  ^
../../chrome/browser/ui/views/toolbar/samsung/split_screen_button.cc(72,41): error: too many arguments to function call, expected 0, have 1
   72 |   current_web_view->RemoveAllChildViews(false);
      |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~
../..\ui/views/view.h(489,8): note: 'RemoveAllChildViews' declared here
  489 |   void RemoveAllChildViews();
      |        ^
4 errors generated.
ninja: build stopped: subcommand failed.
PS D:\si\trunk\src> 
Editor is loading...
Leave a Comment