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

Side by Side Diff: chrome/views/dialog_delegate.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/select_profile_dialog.cc ('k') | chrome/views/dialog_delegate.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 #ifndef CHROME_VIEWS_DIALOG_DELEGATE_H_ 5 #ifndef CHROME_VIEWS_DIALOG_DELEGATE_H_
6 #define CHROME_VIEWS_DIALOG_DELEGATE_H_ 6 #define CHROME_VIEWS_DIALOG_DELEGATE_H_
7 7
8 #include "chrome/views/dialog_client_view.h" 8 #include "chrome/views/dialog_client_view.h"
9 #include "chrome/views/window_delegate.h" 9 #include "chrome/views/window_delegate.h"
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // there is no "Cancel" button. This function should return true if the window 89 // there is no "Cancel" button. This function should return true if the window
90 // can be closed after the window can be closed after it returns, or false if 90 // can be closed after the window can be closed after it returns, or false if
91 // it must remain open. If |window_closing| is true, it means that this 91 // it must remain open. If |window_closing| is true, it means that this
92 // handler is being called because the window is being closed (e.g. by 92 // handler is being called because the window is being closed (e.g. by
93 // Window::Close) and there is no Cancel handler, so Accept is being called 93 // Window::Close) and there is no Cancel handler, so Accept is being called
94 // instead. 94 // instead.
95 virtual bool Accept(bool window_closing) { return Accept(); } 95 virtual bool Accept(bool window_closing) { return Accept(); }
96 virtual bool Accept() { return true; } 96 virtual bool Accept() { return true; }
97 97
98 // Overridden from WindowDelegate: 98 // Overridden from WindowDelegate:
99 virtual View* GetInitiallyFocusedView() const; 99 virtual View* GetInitiallyFocusedView();
100 100
101 // Overridden from WindowDelegate: 101 // Overridden from WindowDelegate:
102 virtual ClientView* CreateClientView(Window* window); 102 virtual ClientView* CreateClientView(Window* window);
103 103
104 // A helper for accessing the DialogClientView object contained by this 104 // A helper for accessing the DialogClientView object contained by this
105 // delegate's Window. 105 // delegate's Window.
106 DialogClientView* GetDialogClientView() const; 106 DialogClientView* GetDialogClientView() const;
107 }; 107 };
108 108
109 } // namespace views 109 } // namespace views
110 110
111 #endif // CHROME_VIEWS_DIALOG_DELEGATE_H_ 111 #endif // CHROME_VIEWS_DIALOG_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/select_profile_dialog.cc ('k') | chrome/views/dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698