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

Unified Diff: chrome/browser/chromeos/wm_ipc.cc

Issue 661237: This adds in the ability for Chrome to generate windows with snapshots of all... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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 | « chrome/browser/chromeos/wm_ipc.h ('k') | chrome/browser/chromeos/wm_overview_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/wm_ipc.cc
===================================================================
--- chrome/browser/chromeos/wm_ipc.cc (revision 45523)
+++ chrome/browser/chromeos/wm_ipc.cc (working copy)
@@ -84,12 +84,18 @@
type_to_atom_[ATOM_CHROME_WINDOW_TYPE], values);
}
-WmIpc::WindowType WmIpc::GetWindowType(GtkWidget* widget) {
- int type;
- if (x11_util::GetIntProperty(
+WmIpc::WindowType WmIpc::GetWindowType(GtkWidget* widget,
+ std::vector<int>* params) {
+ std::vector<int> properties;
+ if (x11_util::GetIntArrayProperty(
x11_util::GetX11WindowFromGtkWidget(widget),
atom_to_string_[type_to_atom_[ATOM_CHROME_WINDOW_TYPE]],
- &type)) {
+ &properties)) {
+ int type = properties.front();
+ if (params) {
+ params->clear();
+ params->insert(params->begin(), properties.begin() + 1, properties.end());
+ }
return static_cast<WindowType>(type);
} else {
return WINDOW_TYPE_UNKNOWN;
« no previous file with comments | « chrome/browser/chromeos/wm_ipc.h ('k') | chrome/browser/chromeos/wm_overview_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698