Chromium Code Reviews| Index: apps/native_app_window.h |
| diff --git a/apps/native_app_window.h b/apps/native_app_window.h |
| index e5403ed072c46166cb2502711a223bf9fea03736..3b2fc3101922e73ac6d993b3924b7b1b3255cac6 100644 |
| --- a/apps/native_app_window.h |
| +++ b/apps/native_app_window.h |
| @@ -22,6 +22,9 @@ class NativeAppWindow : public ui::BaseWindow, |
| virtual void UpdateDraggableRegions( |
| const std::vector<extensions::DraggableRegion>& regions) = 0; |
| + // Returns the region used by frameless windows for dragging. May return NULL. |
| + virtual SkRegion* GetDraggableRegion() const = 0; |
|
stevenjb
2013/10/14 22:16:31
Generally, if we return a non-const pointer, we do
James Cook
2013/10/14 22:25:51
Oops, typo. Done.
|
| + |
| // Called when the region that accepts input events is changed. |
| // If |region| is NULL, then the entire window will accept input events. |
| virtual void UpdateInputRegion(scoped_ptr<SkRegion> region) = 0; |
| @@ -43,6 +46,10 @@ class NativeAppWindow : public ui::BaseWindow, |
| virtual void HandleKeyboardEvent( |
| const content::NativeWebKeyboardEvent& event) = 0; |
| + // Returns true if the window has no frame, as for a window opened by |
| + // chrome.app.window.create with the option 'frame' set to 'none'. |
| + virtual bool IsFrameless() const = 0; |
| + |
| // Returns the difference between the window bounds (including titlebar and |
| // borders) and the content bounds, if any. |
| virtual gfx::Insets GetFrameInsets() const = 0; |