Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: chrome/browser/chromeos/login/ui/simple_web_view_dialog.h

Issue 834383004: Update {virtual,override,final} to follow C++11 style in chrome/browser/chromeos/login/ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <string> 8 #include <string>
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/command_updater_delegate.h" 10 #include "chrome/browser/command_updater_delegate.h"
(...skipping 26 matching lines...) Expand all
37 // isn't running). 37 // isn't running).
38 class SimpleWebViewDialog : public views::ButtonListener, 38 class SimpleWebViewDialog : public views::ButtonListener,
39 public views::WidgetDelegateView, 39 public views::WidgetDelegateView,
40 public LocationBarView::Delegate, 40 public LocationBarView::Delegate,
41 public ToolbarModelDelegate, 41 public ToolbarModelDelegate,
42 public CommandUpdaterDelegate, 42 public CommandUpdaterDelegate,
43 public content::PageNavigator, 43 public content::PageNavigator,
44 public content::WebContentsDelegate { 44 public content::WebContentsDelegate {
45 public: 45 public:
46 explicit SimpleWebViewDialog(Profile* profile); 46 explicit SimpleWebViewDialog(Profile* profile);
47 virtual ~SimpleWebViewDialog(); 47 ~SimpleWebViewDialog() override;
48 48
49 // Starts loading. 49 // Starts loading.
50 void StartLoad(const GURL& gurl); 50 void StartLoad(const GURL& gurl);
51 51
52 // Inits view. Should be attached to a Widget before call. 52 // Inits view. Should be attached to a Widget before call.
53 void Init(); 53 void Init();
54 54
55 // Overridden from views::View: 55 // Overridden from views::View:
56 virtual void Layout() override; 56 void Layout() override;
57 57
58 // Overridden from views::WidgetDelegate: 58 // Overridden from views::WidgetDelegate:
59 virtual views::View* GetContentsView() override; 59 views::View* GetContentsView() override;
60 virtual views::View* GetInitiallyFocusedView() override; 60 views::View* GetInitiallyFocusedView() override;
61 61
62 // Implements views::ButtonListener: 62 // Implements views::ButtonListener:
63 virtual void ButtonPressed(views::Button* sender, 63 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
64 const ui::Event& event) override;
65 64
66 // Implements content::PageNavigator: 65 // Implements content::PageNavigator:
67 virtual content::WebContents* OpenURL( 66 content::WebContents* OpenURL(const content::OpenURLParams& params) override;
68 const content::OpenURLParams& params) override;
69 67
70 // Implements content::WebContentsDelegate: 68 // Implements content::WebContentsDelegate:
71 virtual void NavigationStateChanged( 69 void NavigationStateChanged(content::WebContents* source,
72 content::WebContents* source, 70 content::InvalidateTypes changed_flags) override;
73 content::InvalidateTypes changed_flags) override; 71 void LoadingStateChanged(content::WebContents* source,
74 virtual void LoadingStateChanged(content::WebContents* source, 72 bool to_different_document) override;
75 bool to_different_document) override;
76 73
77 // Implements LocationBarView::Delegate: 74 // Implements LocationBarView::Delegate:
78 virtual content::WebContents* GetWebContents() override; 75 content::WebContents* GetWebContents() override;
79 virtual ToolbarModel* GetToolbarModel() override; 76 ToolbarModel* GetToolbarModel() override;
80 virtual const ToolbarModel* GetToolbarModel() const override; 77 const ToolbarModel* GetToolbarModel() const override;
81 virtual InstantController* GetInstant() override; 78 InstantController* GetInstant() override;
82 virtual views::Widget* CreateViewsBubble( 79 views::Widget* CreateViewsBubble(
83 views::BubbleDelegateView* bubble_delegate) override; 80 views::BubbleDelegateView* bubble_delegate) override;
84 virtual PageActionImageView* CreatePageActionImageView( 81 PageActionImageView* CreatePageActionImageView(
85 LocationBarView* owner, 82 LocationBarView* owner,
86 ExtensionAction* action) override; 83 ExtensionAction* action) override;
87 virtual ContentSettingBubbleModelDelegate* 84 ContentSettingBubbleModelDelegate* GetContentSettingBubbleModelDelegate()
88 GetContentSettingBubbleModelDelegate() override; 85 override;
89 virtual void ShowWebsiteSettings(content::WebContents* web_contents, 86 void ShowWebsiteSettings(content::WebContents* web_contents,
90 const GURL& url, 87 const GURL& url,
91 const content::SSLStatus& ssl) override; 88 const content::SSLStatus& ssl) override;
92 89
93 // Implements ToolbarModelDelegate: 90 // Implements ToolbarModelDelegate:
94 virtual content::WebContents* GetActiveWebContents() const override; 91 content::WebContents* GetActiveWebContents() const override;
95 virtual bool InTabbedBrowser() const override; 92 bool InTabbedBrowser() const override;
96 93
97 // Implements CommandUpdaterDelegate: 94 // Implements CommandUpdaterDelegate:
98 virtual void ExecuteCommandWithDisposition( 95 void ExecuteCommandWithDisposition(int id, WindowOpenDisposition) override;
99 int id,
100 WindowOpenDisposition) override;
101 96
102 private: 97 private:
103 friend class SimpleWebViewDialogTest; 98 friend class SimpleWebViewDialogTest;
104 99
105 void LoadImages(); 100 void LoadImages();
106 void UpdateButtons(); 101 void UpdateButtons();
107 void UpdateReload(bool is_loading, bool force); 102 void UpdateReload(bool is_loading, bool force);
108 103
109 Profile* profile_; 104 Profile* profile_;
110 scoped_ptr<ToolbarModel> toolbar_model_; 105 scoped_ptr<ToolbarModel> toolbar_model_;
(...skipping 10 matching lines...) Expand all
121 scoped_ptr<views::WebView> web_view_container_; 116 scoped_ptr<views::WebView> web_view_container_;
122 117
123 scoped_ptr<StubBubbleModelDelegate> bubble_model_delegate_; 118 scoped_ptr<StubBubbleModelDelegate> bubble_model_delegate_;
124 119
125 DISALLOW_COPY_AND_ASSIGN(SimpleWebViewDialog); 120 DISALLOW_COPY_AND_ASSIGN(SimpleWebViewDialog);
126 }; 121 };
127 122
128 } // namespace chromeos 123 } // namespace chromeos
129 124
130 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_ 125 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_SIMPLE_WEB_VIEW_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/proxy_settings_dialog.h ('k') | chrome/browser/chromeos/login/ui/simple_web_view_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698