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

Side by Side Diff: chrome/browser/ui/webui/chromeos/first_run/first_run_handler.h

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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_UI_WEBUI_CHROMEOS_FIRST_RUN_FIRST_RUN_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_FIRST_RUN_FIRST_RUN_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_FIRST_RUN_FIRST_RUN_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_FIRST_RUN_FIRST_RUN_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h" 11 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_actor.h"
12 #include "content/public/browser/web_ui_message_handler.h" 12 #include "content/public/browser/web_ui_message_handler.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 class StepPosition; 16 class StepPosition;
17 17
18 class FirstRunHandler : public FirstRunActor, 18 class FirstRunHandler : public FirstRunActor,
19 public content::WebUIMessageHandler { 19 public content::WebUIMessageHandler {
20 public: 20 public:
21 FirstRunHandler(); 21 FirstRunHandler();
22 // Overriden from FirstRunActor. 22 // Overriden from FirstRunActor.
23 virtual bool IsInitialized() override; 23 bool IsInitialized() override;
24 virtual void SetBackgroundVisible(bool visible) override; 24 void SetBackgroundVisible(bool visible) override;
25 virtual void AddRectangularHole(int x, int y, int width, int height) override; 25 void AddRectangularHole(int x, int y, int width, int height) override;
26 virtual void AddRoundHole(int x, int y, float radius) override; 26 void AddRoundHole(int x, int y, float radius) override;
27 virtual void RemoveBackgroundHoles() override; 27 void RemoveBackgroundHoles() override;
28 virtual void ShowStepPositioned(const std::string& name, 28 void ShowStepPositioned(const std::string& name,
29 const StepPosition& position) override; 29 const StepPosition& position) override;
30 virtual void ShowStepPointingTo(const std::string& name, 30 void ShowStepPointingTo(const std::string& name,
31 int x, 31 int x,
32 int y, 32 int y,
33 int offset) override; 33 int offset) override;
34 virtual void HideCurrentStep() override; 34 void HideCurrentStep() override;
35 virtual void Finalize() override; 35 void Finalize() override;
36 virtual bool IsFinalizing() override; 36 bool IsFinalizing() override;
37 37
38 private: 38 private:
39 // Overriden from content::WebUIMessageHandler. 39 // Overriden from content::WebUIMessageHandler.
40 virtual void RegisterMessages() override; 40 void RegisterMessages() override;
41 41
42 // Handlers for calls from JS. 42 // Handlers for calls from JS.
43 void HandleInitialized(const base::ListValue* args); 43 void HandleInitialized(const base::ListValue* args);
44 void HandleNextButtonClicked(const base::ListValue* args); 44 void HandleNextButtonClicked(const base::ListValue* args);
45 void HandleHelpButtonClicked(const base::ListValue* args); 45 void HandleHelpButtonClicked(const base::ListValue* args);
46 void HandleStepShown(const base::ListValue* args); 46 void HandleStepShown(const base::ListValue* args);
47 void HandleStepHidden(const base::ListValue* args); 47 void HandleStepHidden(const base::ListValue* args);
48 void HandleFinalized(const base::ListValue* args); 48 void HandleFinalized(const base::ListValue* args);
49 49
50 bool is_initialized_; 50 bool is_initialized_;
51 bool is_finalizing_; 51 bool is_finalizing_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(FirstRunHandler); 53 DISALLOW_COPY_AND_ASSIGN(FirstRunHandler);
54 }; 54 };
55 55
56 } // namespace chromeos 56 } // namespace chromeos
57 57
58 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_FIRST_RUN_FIRST_RUN_HANDLER_H_ 58 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_FIRST_RUN_FIRST_RUN_HANDLER_H_
59 59
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/drive_internals_ui.cc ('k') | chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698