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

Side by Side Diff: chrome/browser/ui/webui/chromeos/mobile_setup_dialog.cc

Issue 854063002: Update {virtual,override,final} to follow C++11 style chrome/browser/ui/webui/chromeos. (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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h" 5 #include "chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/browser_shutdown.h" 10 #include "chrome/browser/browser_shutdown.h"
(...skipping 20 matching lines...) Expand all
31 31
32 class MobileSetupDialogDelegate : public WebDialogDelegate { 32 class MobileSetupDialogDelegate : public WebDialogDelegate {
33 public: 33 public:
34 static MobileSetupDialogDelegate* GetInstance(); 34 static MobileSetupDialogDelegate* GetInstance();
35 void ShowDialog(const std::string& service_path); 35 void ShowDialog(const std::string& service_path);
36 36
37 protected: 37 protected:
38 friend struct DefaultSingletonTraits<MobileSetupDialogDelegate>; 38 friend struct DefaultSingletonTraits<MobileSetupDialogDelegate>;
39 39
40 MobileSetupDialogDelegate(); 40 MobileSetupDialogDelegate();
41 virtual ~MobileSetupDialogDelegate(); 41 ~MobileSetupDialogDelegate() override;
42 42
43 void OnCloseDialog(); 43 void OnCloseDialog();
44 44
45 // WebDialogDelegate overrides. 45 // WebDialogDelegate overrides.
46 virtual ui::ModalType GetDialogModalType() const override; 46 ui::ModalType GetDialogModalType() const override;
47 virtual base::string16 GetDialogTitle() const override; 47 base::string16 GetDialogTitle() const override;
48 virtual GURL GetDialogContentURL() const override; 48 GURL GetDialogContentURL() const override;
49 virtual void GetWebUIMessageHandlers( 49 void GetWebUIMessageHandlers(
50 std::vector<WebUIMessageHandler*>* handlers) const override; 50 std::vector<WebUIMessageHandler*>* handlers) const override;
51 virtual void GetDialogSize(gfx::Size* size) const override; 51 void GetDialogSize(gfx::Size* size) const override;
52 virtual std::string GetDialogArgs() const override; 52 std::string GetDialogArgs() const override;
53 virtual void OnDialogClosed(const std::string& json_retval) override; 53 void OnDialogClosed(const std::string& json_retval) override;
54 virtual void OnCloseContents(WebContents* source, 54 void OnCloseContents(WebContents* source, bool* out_close_dialog) override;
55 bool* out_close_dialog) override; 55 bool ShouldShowDialogTitle() const override;
56 virtual bool ShouldShowDialogTitle() const override; 56 bool HandleContextMenu(const content::ContextMenuParams& params) override;
57 virtual bool HandleContextMenu(
58 const content::ContextMenuParams& params) override;
59 57
60 private: 58 private:
61 gfx::NativeWindow dialog_window_; 59 gfx::NativeWindow dialog_window_;
62 // Cellular network service path. 60 // Cellular network service path.
63 std::string service_path_; 61 std::string service_path_;
64 DISALLOW_COPY_AND_ASSIGN(MobileSetupDialogDelegate); 62 DISALLOW_COPY_AND_ASSIGN(MobileSetupDialogDelegate);
65 }; 63 };
66 64
67 // static 65 // static
68 void MobileSetupDialog::Show(const std::string& service_path) { 66 void MobileSetupDialog::Show(const std::string& service_path) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 150 }
153 151
154 bool MobileSetupDialogDelegate::ShouldShowDialogTitle() const { 152 bool MobileSetupDialogDelegate::ShouldShowDialogTitle() const {
155 return true; 153 return true;
156 } 154 }
157 155
158 bool MobileSetupDialogDelegate::HandleContextMenu( 156 bool MobileSetupDialogDelegate::HandleContextMenu(
159 const content::ContextMenuParams& params) { 157 const content::ContextMenuParams& params) {
160 return true; 158 return true;
161 } 159 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc ('k') | chrome/browser/ui/webui/chromeos/mobile_setup_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698