diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-08 00:39:37 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-08 00:39:37 +0000 |
commit | a0629af98491baaeab2a8171a334c2d44a9c4360 (patch) | |
tree | 89fda8d000bfec9f527949737ff1b9269b8dae2f /chrome/browser/ui/extensions | |
parent | b3996ba1c1d6d4ece36bc0c695ca81f6a56572b2 (diff) | |
download | chromium_src-a0629af98491baaeab2a8171a334c2d44a9c4360.zip chromium_src-a0629af98491baaeab2a8171a334c2d44a9c4360.tar.gz chromium_src-a0629af98491baaeab2a8171a334c2d44a9c4360.tar.bz2 |
Draggable region support for frameless app window on Windows.
BUG=134169
TEST=Manual test by dragging frameless window
Review URL: https://chromiumcodereview.appspot.com/10822004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150471 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/extensions')
-rw-r--r-- | chrome/browser/ui/extensions/shell_window.cc | 2 | ||||
-rw-r--r-- | chrome/browser/ui/extensions/shell_window.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc index 45e04b6..1cbb7da 100644 --- a/chrome/browser/ui/extensions/shell_window.cc +++ b/chrome/browser/ui/extensions/shell_window.cc @@ -253,6 +253,8 @@ bool ShellWindow::OnMessageReceived(const IPC::Message& message) { bool handled = true; IPC_BEGIN_MESSAGE_MAP(ShellWindow, message) IPC_MESSAGE_HANDLER(ExtensionHostMsg_Request, OnRequest) + IPC_MESSAGE_HANDLER(ExtensionHostMsg_UpdateDraggableRegions, + UpdateDraggableRegions) IPC_MESSAGE_UNHANDLED(handled = false) IPC_END_MESSAGE_MAP() return handled; diff --git a/chrome/browser/ui/extensions/shell_window.h b/chrome/browser/ui/extensions/shell_window.h index 4d74fc8c..1c68402 100644 --- a/chrome/browser/ui/extensions/shell_window.h +++ b/chrome/browser/ui/extensions/shell_window.h @@ -27,6 +27,7 @@ class WebContents; namespace extensions { class Extension; class WindowController; +struct DraggableRegion; } // ShellWindow is the type of window used by platform apps. Shell windows @@ -78,6 +79,10 @@ class ShellWindow : public content::NotificationObserver, virtual void SetFullscreen(bool fullscreen) {} virtual bool IsFullscreenOrPending() const; + // Called when the draggable regions are changed. + virtual void UpdateDraggableRegions( + const std::vector<extensions::DraggableRegion>& regions) {} + // Call to notify ShellRegistry and delete the window. Subclasses should // invoke this method instead of using "delete this". void OnNativeClose(); |