| Index: views/widget/native_widget_delegate.h
|
| ===================================================================
|
| --- views/widget/native_widget_delegate.h (revision 88218)
|
| +++ views/widget/native_widget_delegate.h (working copy)
|
| @@ -24,6 +24,15 @@
|
| public:
|
| virtual ~NativeWidgetDelegate() {}
|
|
|
| + // Returns true if the window can be activated.
|
| + virtual bool CanActivate() const = 0;
|
| +
|
| + virtual bool IsInactiveRenderingDisabled() const = 0;
|
| + virtual void EnableInactiveRendering() = 0;
|
| +
|
| + // Called when the activation state of a window has changed.
|
| + virtual void OnNativeWidgetActivationChanged(bool active) = 0;
|
| +
|
| // Called when native focus moves from one native view to another.
|
| virtual void OnNativeFocus(gfx::NativeView focused_view) = 0;
|
| virtual void OnNativeBlur(gfx::NativeView focused_view) = 0;
|
| @@ -31,12 +40,23 @@
|
| // Called when the native widget is created.
|
| virtual void OnNativeWidgetCreated() = 0;
|
|
|
| + // Called just before the native widget is destroyed. This is the delegate's
|
| + // last chance to do anything with the native widget handle.
|
| + virtual void OnNativeWidgetDestroying() = 0;
|
| +
|
| // Called just after the native widget is destroyed.
|
| virtual void OnNativeWidgetDestroyed() = 0;
|
|
|
| + // Returns the smallest size the window can be resized to by the user.
|
| + virtual gfx::Size GetMinimumSize() = 0;
|
| +
|
| // Called when the NativeWidget changed size to |new_size|.
|
| - virtual void OnSizeChanged(const gfx::Size& new_size) = 0;
|
| + virtual void OnNativeWidgetSizeChanged(const gfx::Size& new_size) = 0;
|
|
|
| + // Called when the user begins/ends to change the bounds of the window.
|
| + virtual void OnNativeWidgetBeginUserBoundsChange() = 0;
|
| + virtual void OnNativeWidgetEndUserBoundsChange() = 0;
|
| +
|
| // Returns true if the delegate has a FocusManager.
|
| virtual bool HasFocusManager() const = 0;
|
|
|
| @@ -49,11 +69,18 @@
|
| // tree if necessary when accelerated painting is enabled.
|
| virtual void OnNativeWidgetPaint(gfx::Canvas* canvas) = 0;
|
|
|
| + // Returns the non-client component (see views/window/hit_test.h) containing
|
| + // |point|, in client coordinates.
|
| + virtual int GetNonClientComponent(const gfx::Point& point) = 0;
|
| +
|
| // Mouse and key event handlers.
|
| virtual bool OnKeyEvent(const KeyEvent& event) = 0;
|
| virtual bool OnMouseEvent(const MouseEvent& event) = 0;
|
| virtual void OnMouseCaptureLost() = 0;
|
|
|
| + // Runs the specified native command. Returns true if the command is handled.
|
| + virtual bool ExecuteCommand(int command_id) = 0;
|
| +
|
| //
|
| virtual Widget* AsWidget() = 0;
|
| virtual const Widget* AsWidget() const = 0;
|
|
|