OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // Starts loading. | 52 // Starts loading. |
53 void StartLoad(const GURL& gurl); | 53 void StartLoad(const GURL& gurl); |
54 | 54 |
55 // Inits view. Should be attached to a Widget before call. | 55 // Inits view. Should be attached to a Widget before call. |
56 void Init(); | 56 void Init(); |
57 | 57 |
58 // Overridden from views::View: | 58 // Overridden from views::View: |
59 void Layout() override; | 59 void Layout() override; |
60 | 60 |
61 // Overridden from views::WidgetDelegate: | 61 // Overridden from views::WidgetDelegate: |
62 views::View* GetContentsView() override; | |
63 views::View* GetInitiallyFocusedView() override; | 62 views::View* GetInitiallyFocusedView() override; |
64 | 63 |
65 // Implements views::ButtonListener: | 64 // Implements views::ButtonListener: |
66 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 65 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
67 | 66 |
68 // Implements content::PageNavigator: | 67 // Implements content::PageNavigator: |
69 content::WebContents* OpenURL(const content::OpenURLParams& params) override; | 68 content::WebContents* OpenURL(const content::OpenURLParams& params) override; |
70 | 69 |
71 // Implements content::WebContentsDelegate: | 70 // Implements content::WebContentsDelegate: |
72 void NavigationStateChanged(content::WebContents* source, | 71 void NavigationStateChanged(content::WebContents* source, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 std::unique_ptr<views::WebView> web_view_container_; | 116 std::unique_ptr<views::WebView> web_view_container_; |
118 | 117 |
119 std::unique_ptr<StubBubbleModelDelegate> bubble_model_delegate_; | 118 std::unique_ptr<StubBubbleModelDelegate> bubble_model_delegate_; |
120 | 119 |
121 DISALLOW_COPY_AND_ASSIGN(SimpleWebViewDialog); | 120 DISALLOW_COPY_AND_ASSIGN(SimpleWebViewDialog); |
122 }; | 121 }; |
123 | 122 |
124 } // namespace chromeos | 123 } // namespace chromeos |
125 | 124 |
126 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ | 125 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ |
OLD | NEW |