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

Unified Diff: apps/native_app_window.h

Issue 27029006: apps: Move chrome's ShellWindowFrameView into apps/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 7 years, 2 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
« no previous file with comments | « apps/apps.gypi ('k') | apps/ui/views/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/native_app_window.h
diff --git a/apps/native_app_window.h b/apps/native_app_window.h
index e5403ed072c46166cb2502711a223bf9fea03736..834491425aae7d0d1bb24bf84368df33aa8c7f6f 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() = 0;
+
// 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;
« no previous file with comments | « apps/apps.gypi ('k') | apps/ui/views/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698