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

Unified Diff: views/widget/native_widget_delegate.h

Issue 7129022: Move last of event handlers down to NativeWidgetWin/Gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: views/widget/native_widget_delegate.h
===================================================================
--- views/widget/native_widget_delegate.h (revision 88384)
+++ views/widget/native_widget_delegate.h (working copy)
@@ -24,6 +24,12 @@
public:
virtual ~NativeWidgetDelegate() {}
+ // Returns true if the window is modal.
+ virtual bool IsModal() const = 0;
+
+ // Returns true if the window is a dialog box.
+ virtual bool IsDialogBox() const = 0;
+
// Returns true if the window can be activated.
virtual bool CanActivate() const = 0;
@@ -38,7 +44,7 @@
virtual void OnNativeBlur(gfx::NativeView focused_view) = 0;
// Called when the native widget is created.
- virtual void OnNativeWidgetCreated() = 0;
+ virtual void OnNativeWidgetCreated(const gfx::Rect& create_bounds) = 0;
// Called just before the native widget is destroyed. This is the delegate's
// last chance to do anything with the native widget handle.

Powered by Google App Engine
This is Rietveld 408576698