summaryrefslogtreecommitdiffstats
path: root/mojo/examples/window_manager
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-10 17:52:24 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-10 17:52:24 +0000
commit33bc2bcf876d0833bf7cbe7ca908da6b0c5215d5 (patch)
tree62a408e739969935bdf9b6e37fc49dfc763e469c /mojo/examples/window_manager
parent6e0990e17bc2ada4353c0b1dac1d61bce24e02e0 (diff)
downloadchromium_src-33bc2bcf876d0833bf7cbe7ca908da6b0c5215d5.zip
chromium_src-33bc2bcf876d0833bf7cbe7ca908da6b0c5215d5.tar.gz
chromium_src-33bc2bcf876d0833bf7cbe7ca908da6b0c5215d5.tar.bz2
Wires up necessary pieces to use views with view_manager
The browser side obviously has to change rather extensively, but the rest work on both linux and windows. BUG=365012 TEST=none R=ben@chromium.org Review URL: https://codereview.chromium.org/321043002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/examples/window_manager')
-rw-r--r--mojo/examples/window_manager/window_manager.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/mojo/examples/window_manager/window_manager.cc b/mojo/examples/window_manager/window_manager.cc
index 92d0403..d998f0c 100644
--- a/mojo/examples/window_manager/window_manager.cc
+++ b/mojo/examples/window_manager/window_manager.cc
@@ -72,6 +72,8 @@ class WindowManager : public Application,
CreateWindow("mojo:mojo_embedded_app");
else if (event->flags & ui::EF_RIGHT_MOUSE_BUTTON)
CreateWindow("mojo:mojo_nesting_app");
+ else if (event->flags & ui::EF_MIDDLE_MOUSE_BUTTON)
+ CreateWindow("mojo:mojo_browser");
}
}