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

Side by Side Diff: chrome/browser/chromeos/login/help_app_launcher.h

Issue 8638016: Add OVERRIDE to chrome/browser/chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_HELP_APP_LAUNCHER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_HELP_APP_LAUNCHER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_HELP_APP_LAUNCHER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_HELP_APP_LAUNCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/chromeos/login/login_html_dialog.h" 12 #include "chrome/browser/chromeos/login/login_html_dialog.h"
12 #include "ui/gfx/native_widget_types.h" 13 #include "ui/gfx/native_widget_types.h"
13 14
14 namespace chromeos { 15 namespace chromeos {
15 16
16 // Provides help content during OOBE / login. 17 // Provides help content during OOBE / login.
17 // Based on connectivity state (offline/online) shows help topic dialog 18 // Based on connectivity state (offline/online) shows help topic dialog
18 // or launches HelpApp in BWSI mode. 19 // or launches HelpApp in BWSI mode.
(...skipping 21 matching lines...) Expand all
40 virtual ~HelpAppLauncher(); 41 virtual ~HelpAppLauncher();
41 42
42 // Shows specified help topic. 43 // Shows specified help topic.
43 void ShowHelpTopic(HelpTopic help_topic_id); 44 void ShowHelpTopic(HelpTopic help_topic_id);
44 45
45 // Returns true if the dialog is currently open. 46 // Returns true if the dialog is currently open.
46 bool is_open() const { return dialog_.get() && dialog_->is_open(); } 47 bool is_open() const { return dialog_.get() && dialog_->is_open(); }
47 48
48 protected: 49 protected:
49 // LoginHtmlDialog::Delegate implementation: 50 // LoginHtmlDialog::Delegate implementation:
50 virtual void OnDialogClosed() {} 51 virtual void OnDialogClosed() OVERRIDE {}
51 52
52 private: 53 private:
53 // Shows help topic dialog for specified GURL. 54 // Shows help topic dialog for specified GURL.
54 void ShowHelpTopicDialog(const GURL& topic_url); 55 void ShowHelpTopicDialog(const GURL& topic_url);
55 56
56 // Dialog used to display help like "Can't access your account". 57 // Dialog used to display help like "Can't access your account".
57 scoped_ptr<LoginHtmlDialog> dialog_; 58 scoped_ptr<LoginHtmlDialog> dialog_;
58 59
59 // Parent window which is passed to help dialog. 60 // Parent window which is passed to help dialog.
60 gfx::NativeWindow parent_window_; 61 gfx::NativeWindow parent_window_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(HelpAppLauncher); 63 DISALLOW_COPY_AND_ASSIGN(HelpAppLauncher);
63 }; 64 };
64 65
65 } // namespace chromeos 66 } // namespace chromeos
66 67
67 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELP_APP_LAUNCHER_H_ 68 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_HELP_APP_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698