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

Side by Side Diff: chrome/browser/chromeos/ui/idle_logout_dialog_view.h

Issue 11571023: Move ash/wm's DialogFrameView to ui/views/window; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reorder DialogDelegate functions; inline Get*Params into WidgetExample::ButtonPressed; etc. Created 8 years 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) 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 #ifndef CHROME_BROWSER_CHROMEOS_UI_IDLE_LOGOUT_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_UI_IDLE_LOGOUT_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_UI_IDLE_LOGOUT_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_UI_IDLE_LOGOUT_DIALOG_VIEW_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/timer.h" 10 #include "base/timer.h"
(...skipping 29 matching lines...) Expand all
40 // A class to show the logout on idle dialog if the machine is in retail mode. 40 // A class to show the logout on idle dialog if the machine is in retail mode.
41 class IdleLogoutDialogView : public views::DialogDelegateView { 41 class IdleLogoutDialogView : public views::DialogDelegateView {
42 public: 42 public:
43 static void ShowDialog(); 43 static void ShowDialog();
44 static void CloseDialog(); 44 static void CloseDialog();
45 45
46 // views::DialogDelegateView: 46 // views::DialogDelegateView:
47 virtual int GetDialogButtons() const OVERRIDE; 47 virtual int GetDialogButtons() const OVERRIDE;
48 virtual ui::ModalType GetModalType() const OVERRIDE; 48 virtual ui::ModalType GetModalType() const OVERRIDE;
49 virtual string16 GetWindowTitle() const OVERRIDE; 49 virtual string16 GetWindowTitle() const OVERRIDE;
50 virtual views::View* GetContentsView() OVERRIDE;
51 50
52 private: 51 private:
53 friend class MockIdleLogoutSettingsProvider; 52 friend class MockIdleLogoutSettingsProvider;
54 friend class IdleLogoutDialogViewTest; 53 friend class IdleLogoutDialogViewTest;
55 FRIEND_TEST_ALL_PREFIXES(IdleLogoutDialogViewTest, ShowDialogAndCloseView); 54 FRIEND_TEST_ALL_PREFIXES(IdleLogoutDialogViewTest, ShowDialogAndCloseView);
56 FRIEND_TEST_ALL_PREFIXES(IdleLogoutDialogViewTest, 55 FRIEND_TEST_ALL_PREFIXES(IdleLogoutDialogViewTest,
57 ShowDialogAndCloseViewClose); 56 ShowDialogAndCloseViewClose);
58 57
59 IdleLogoutDialogView(); 58 IdleLogoutDialogView();
60 virtual ~IdleLogoutDialogView(); 59 virtual ~IdleLogoutDialogView();
(...skipping 20 matching lines...) Expand all
81 base::WeakPtrFactory<IdleLogoutDialogView> weak_ptr_factory_; 80 base::WeakPtrFactory<IdleLogoutDialogView> weak_ptr_factory_;
82 81
83 static IdleLogoutSettingsProvider* provider_; 82 static IdleLogoutSettingsProvider* provider_;
84 83
85 DISALLOW_COPY_AND_ASSIGN(IdleLogoutDialogView); 84 DISALLOW_COPY_AND_ASSIGN(IdleLogoutDialogView);
86 }; 85 };
87 86
88 } // namespace chromeos 87 } // namespace chromeos
89 88
90 #endif // CHROME_BROWSER_CHROMEOS_UI_IDLE_LOGOUT_DIALOG_VIEW_H_ 89 #endif // CHROME_BROWSER_CHROMEOS_UI_IDLE_LOGOUT_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/options/network_config_view.cc ('k') | chrome/browser/chromeos/ui/idle_logout_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698