summaryrefslogtreecommitdiffstats
path: root/apps/native_app_window.h
diff options
context:
space:
mode:
authorgarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-13 17:40:26 +0000
committergarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-13 17:40:26 +0000
commitffec0fcb7a28608f829646e62d6a21ad69860016 (patch)
treec752d7ff26462684dfbbfd11560b7b23d402d977 /apps/native_app_window.h
parent7603bbd17fc813ce41d8105a21df066f70ef0789 (diff)
downloadchromium_src-ffec0fcb7a28608f829646e62d6a21ad69860016.zip
chromium_src-ffec0fcb7a28608f829646e62d6a21ad69860016.tar.gz
chromium_src-ffec0fcb7a28608f829646e62d6a21ad69860016.tar.bz2
Add support for setInputRegion API.
The setInputRegion API allows windows to define a region that accepts user input. If the input region is not specified, it defaults to the entire window, otherwise only events within the specified region will be processed by the window. Events outside this region will be passed to the window below. This API is supported on CrOS only and requires Dev channel. BUG=272326 R=benwells@chromium.org, kalman@chromium.org, pkasting@chromium.org, sadrul@chromium.org, stevenjb@chromium.org, wez@chromium.org Review URL: https://codereview.chromium.org/21123006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217284 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/native_app_window.h')
-rw-r--r--apps/native_app_window.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/native_app_window.h b/apps/native_app_window.h
index 0286453..fcad3ce 100644
--- a/apps/native_app_window.h
+++ b/apps/native_app_window.h
@@ -22,6 +22,10 @@ class NativeAppWindow : public ui::BaseWindow,
virtual void UpdateDraggableRegions(
const std::vector<extensions::DraggableRegion>& regions) = 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;
+
virtual void SetFullscreen(bool fullscreen) = 0;
virtual bool IsFullscreenOrPending() const = 0;