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

Side by Side Diff: views/window/dialog_delegate.h

Issue 7920023: Fix crashes related to the extension uninstall dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make Show() pure virtual Created 9 years, 3 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/ui/webui/options/extension_settings_handler.cc ('k') | no next file » | 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) 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 VIEWS_WINDOW_DIALOG_DELEGATE_H_ 5 #ifndef VIEWS_WINDOW_DIALOG_DELEGATE_H_
6 #define VIEWS_WINDOW_DIALOG_DELEGATE_H_ 6 #define VIEWS_WINDOW_DIALOG_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/base/accessibility/accessibility_types.h" 9 #include "ui/base/accessibility/accessibility_types.h"
10 #include "ui/base/message_box_flags.h" 10 #include "ui/base/message_box_flags.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // For Dialog boxes, if there is a "Cancel" button, this is called when the 80 // For Dialog boxes, if there is a "Cancel" button, this is called when the
81 // user presses the "Cancel" button or the Close button on the window or 81 // user presses the "Cancel" button or the Close button on the window or
82 // in the system menu, or presses the Esc key. This function should return 82 // in the system menu, or presses the Esc key. This function should return
83 // true if the window can be closed after it returns, or false if it must 83 // true if the window can be closed after it returns, or false if it must
84 // remain open. 84 // remain open.
85 virtual bool Cancel(); 85 virtual bool Cancel();
86 86
87 // For Dialog boxes, this is called when the user presses the "OK" button, 87 // For Dialog boxes, this is called when the user presses the "OK" button,
88 // or the Enter key. Can also be called on Esc key or close button 88 // or the Enter key. Can also be called on Esc key or close button
89 // presses if there is no "Cancel" button. This function should return 89 // presses if there is no "Cancel" button. This function should return
90 // true if the window can be closed after the window can be closed after 90 // true if the window can be closed after it returns, or false if it must
91 // it returns, or false if it must remain open. If |window_closing| is 91 // remain open. If |window_closing| is true, it means that this handler is
92 // true, it means that this handler is being called because the window is 92 // being called because the window is being closed (e.g. by Window::Close)
93 // being closed (e.g. by Window::Close) and there is no Cancel handler, 93 // and there is no Cancel handler, so Accept is being called instead.
94 // so Accept is being called instead.
95 virtual bool Accept(bool window_closing); 94 virtual bool Accept(bool window_closing);
96 virtual bool Accept(); 95 virtual bool Accept();
97 96
98 // Overridden from WindowDelegate: 97 // Overridden from WindowDelegate:
99 virtual View* GetInitiallyFocusedView() OVERRIDE; 98 virtual View* GetInitiallyFocusedView() OVERRIDE;
100 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE; 99 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE;
101 100
102 // Called when the window has been closed. 101 // Called when the window has been closed.
103 virtual void OnClose() {} 102 virtual void OnClose() {}
104 103
(...skipping 21 matching lines...) Expand all
126 virtual const Widget* GetWidget() const OVERRIDE; 125 virtual const Widget* GetWidget() const OVERRIDE;
127 126
128 private: 127 private:
129 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 128 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
130 }; 129 };
131 130
132 131
133 } // namespace views 132 } // namespace views
134 133
135 #endif // VIEWS_WINDOW_DIALOG_DELEGATE_H_ 134 #endif // VIEWS_WINDOW_DIALOG_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/extension_settings_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698