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

Side by Side Diff: chrome/browser/chromeos/login/ui/captive_portal_view.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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CAPTIVE_PORTAL_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_CAPTIVE_PORTAL_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_CAPTIVE_PORTAL_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_CAPTIVE_PORTAL_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include "chrome/browser/chromeos/login/ui/simple_web_view_dialog.h" 9 #include "chrome/browser/chromeos/login/ui/simple_web_view_dialog.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 class CaptivePortalWindowProxy; 13 class CaptivePortalWindowProxy;
14 14
15 class CaptivePortalView : public SimpleWebViewDialog { 15 class CaptivePortalView : public SimpleWebViewDialog {
16 public: 16 public:
17 CaptivePortalView(Profile* profile, CaptivePortalWindowProxy* proxy); 17 CaptivePortalView(Profile* profile, CaptivePortalWindowProxy* proxy);
18 virtual ~CaptivePortalView(); 18 ~CaptivePortalView() override;
19 19
20 // Starts loading. 20 // Starts loading.
21 void StartLoad(); 21 void StartLoad();
22 22
23 // Overridden from views::WidgetDelegate: 23 // Overridden from views::WidgetDelegate:
24 virtual bool CanResize() const override; 24 bool CanResize() const override;
25 virtual ui::ModalType GetModalType() const override; 25 ui::ModalType GetModalType() const override;
26 virtual base::string16 GetWindowTitle() const override; 26 base::string16 GetWindowTitle() const override;
27 virtual bool ShouldShowWindowTitle() const override; 27 bool ShouldShowWindowTitle() const override;
28 virtual views::NonClientFrameView* CreateNonClientFrameView( 28 views::NonClientFrameView* CreateNonClientFrameView(
29 views::Widget* widget) override; 29 views::Widget* widget) override;
30 30
31 // Overridden from content::WebContentsDelegate: 31 // Overridden from content::WebContentsDelegate:
32 virtual void NavigationStateChanged( 32 void NavigationStateChanged(content::WebContents* source,
33 content::WebContents* source, 33 content::InvalidateTypes changed_flags) override;
34 content::InvalidateTypes changed_flags) override; 34 void LoadingStateChanged(content::WebContents* source,
35 virtual void LoadingStateChanged(content::WebContents* source, 35 bool to_different_document) override;
36 bool to_different_document) override;
37 36
38 private: 37 private:
39 // Contains CaptivePortalWindowProxy to be notified when redirection state is 38 // Contains CaptivePortalWindowProxy to be notified when redirection state is
40 // resolved. 39 // resolved.
41 CaptivePortalWindowProxy* proxy_; 40 CaptivePortalWindowProxy* proxy_;
42 41
43 bool redirected_; 42 bool redirected_;
44 43
45 DISALLOW_COPY_AND_ASSIGN(CaptivePortalView); 44 DISALLOW_COPY_AND_ASSIGN(CaptivePortalView);
46 }; 45 };
47 46
48 } // namespace chromeos 47 } // namespace chromeos
49 48
50 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_CAPTIVE_PORTAL_VIEW_H_ 49 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_CAPTIVE_PORTAL_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/ui/captive_portal_window_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698