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

Side by Side Diff: chrome/browser/chromeos/charger_replace/charger_link_dialog.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CHARGER_REPLACE_CHARGER_LINK_DIALOG_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_LINK_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_LINK_DIALOG_H_ 6 #define CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_LINK_DIALOG_H_
7 7
8 #include "ui/gfx/native_widget_types.h" 8 #include "ui/gfx/native_widget_types.h"
9 #include "ui/web_dialogs/web_dialog_delegate.h" 9 #include "ui/web_dialogs/web_dialog_delegate.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 // Dialog for showing the web page for the links on charger replacement dialog. 13 // Dialog for showing the web page for the links on charger replacement dialog.
14 class ChargerLinkDialog : public ui::WebDialogDelegate { 14 class ChargerLinkDialog : public ui::WebDialogDelegate {
15 public: 15 public:
16 ChargerLinkDialog(gfx::NativeWindow parent_window, 16 ChargerLinkDialog(gfx::NativeWindow parent_window,
17 std::string url); 17 std::string url);
18 virtual ~ChargerLinkDialog(); 18 virtual ~ChargerLinkDialog();
19 19
20 void Show(); 20 void Show();
21 21
22 private: 22 private:
23 // ui::WebDialogDelegate implementation. 23 // ui::WebDialogDelegate implementation.
24 virtual ui::ModalType GetDialogModalType() const OVERRIDE; 24 virtual ui::ModalType GetDialogModalType() const override;
25 virtual base::string16 GetDialogTitle() const OVERRIDE; 25 virtual base::string16 GetDialogTitle() const override;
26 virtual GURL GetDialogContentURL() const OVERRIDE; 26 virtual GURL GetDialogContentURL() const override;
27 virtual void GetWebUIMessageHandlers( 27 virtual void GetWebUIMessageHandlers(
28 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; 28 std::vector<content::WebUIMessageHandler*>* handlers) const override;
29 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; 29 virtual void GetDialogSize(gfx::Size* size) const override;
30 virtual std::string GetDialogArgs() const OVERRIDE; 30 virtual std::string GetDialogArgs() const override;
31 // NOTE: This function deletes this object at the end. 31 // NOTE: This function deletes this object at the end.
32 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; 32 virtual void OnDialogClosed(const std::string& json_retval) override;
33 virtual void OnCloseContents( 33 virtual void OnCloseContents(
34 content::WebContents* source, bool* out_close_dialog) OVERRIDE; 34 content::WebContents* source, bool* out_close_dialog) override;
35 virtual bool ShouldShowDialogTitle() const OVERRIDE; 35 virtual bool ShouldShowDialogTitle() const override;
36 virtual bool HandleContextMenu( 36 virtual bool HandleContextMenu(
37 const content::ContextMenuParams& params) OVERRIDE; 37 const content::ContextMenuParams& params) override;
38 38
39 gfx::NativeWindow parent_window_; 39 gfx::NativeWindow parent_window_;
40 std::string url_; 40 std::string url_;
41 41
42 DISALLOW_COPY_AND_ASSIGN(ChargerLinkDialog); 42 DISALLOW_COPY_AND_ASSIGN(ChargerLinkDialog);
43 }; 43 };
44 44
45 } // namespace chromeos 45 } // namespace chromeos
46 46
47 #endif // CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_LINK_DIALOG_H_ 47 #endif // CHROME_BROWSER_CHROMEOS_CHARGER_REPLACE_CHARGER_LINK_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/boot_times_loader.h ('k') | chrome/browser/chromeos/charger_replace/charger_replacement_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698