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

Side by Side Diff: chrome/browser/views/new_profile_dialog.h

Issue 21439: Fix for focus traversal issue in Gears dialogs (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/html_dialog_view.cc ('k') | chrome/browser/views/new_profile_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // A dialog box that prompts the user to enter a profile name, and opens a new 5 // A dialog box that prompts the user to enter a profile name, and opens a new
6 // window in that profile. 6 // window in that profile.
7 7
8 #ifndef CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_ 8 #ifndef CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_
9 #define CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_ 9 #define CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_
10 10
(...skipping 13 matching lines...) Expand all
24 class NewProfileDialog : public views::DialogDelegate, 24 class NewProfileDialog : public views::DialogDelegate,
25 public views::TextField::Controller { 25 public views::TextField::Controller {
26 public: 26 public:
27 // Creates and runs the dialog. 27 // Creates and runs the dialog.
28 static void RunDialog(); 28 static void RunDialog();
29 virtual ~NewProfileDialog(); 29 virtual ~NewProfileDialog();
30 30
31 // views::DialogDelegate methods. 31 // views::DialogDelegate methods.
32 virtual bool Accept(); 32 virtual bool Accept();
33 virtual int GetDialogButtons() const; 33 virtual int GetDialogButtons() const;
34 virtual views::View* GetInitiallyFocusedView() const; 34 virtual views::View* GetInitiallyFocusedView();
35 virtual bool IsDialogButtonEnabled(DialogButton button) const; 35 virtual bool IsDialogButtonEnabled(DialogButton button) const;
36 virtual std::wstring GetWindowTitle() const; 36 virtual std::wstring GetWindowTitle() const;
37 virtual void WindowClosing(); 37 virtual void WindowClosing();
38 38
39 // views::TextField::Controller methods. 39 // views::TextField::Controller methods.
40 virtual void ContentsChanged(views::TextField* sender, 40 virtual void ContentsChanged(views::TextField* sender,
41 const std::wstring& new_contents); 41 const std::wstring& new_contents);
42 virtual void HandleKeystroke(views::TextField* sender, 42 virtual void HandleKeystroke(views::TextField* sender,
43 UINT message, TCHAR key, UINT repeat_count, 43 UINT message, TCHAR key, UINT repeat_count,
44 UINT flags) {} 44 UINT flags) {}
45 45
46 // views::WindowDelegate methods. 46 // views::WindowDelegate methods.
47 virtual views::View* GetContentsView(); 47 virtual views::View* GetContentsView();
48 virtual bool IsAlwaysOnTop() const { return false; } 48 virtual bool IsAlwaysOnTop() const { return false; }
49 virtual bool IsModal() const { return false; } 49 virtual bool IsModal() const { return false; }
50 50
51 private: 51 private:
52 NewProfileDialog(); 52 NewProfileDialog();
53 53
54 MessageBoxView* message_box_view_; 54 MessageBoxView* message_box_view_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(NewProfileDialog); 56 DISALLOW_COPY_AND_ASSIGN(NewProfileDialog);
57 }; 57 };
58 58
59 #endif // CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_ 59 #endif // CHROME_BROWSER_VIEWS_NEW_PROFILE_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/html_dialog_view.cc ('k') | chrome/browser/views/new_profile_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698