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

Side by Side Diff: chrome/browser/chromeos/wm_ipc.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/wm_ipc.h" 5 #include "chrome/browser/chromeos/wm_ipc.h"
6 6
7 #include <gdk/gdkx.h> 7 #include <gdk/gdkx.h>
8 extern "C" { 8 extern "C" {
9 #include <X11/Xatom.h> 9 #include <X11/Xatom.h>
10 #include <X11/Xlib.h> 10 #include <X11/Xlib.h>
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 } 296 }
297 297
298 void WmIpc::FetchLayoutModeProperty() { 298 void WmIpc::FetchLayoutModeProperty() {
299 int value = 0; 299 int value = 0;
300 if (ui::GetIntProperty( 300 if (ui::GetIntProperty(
301 gdk_x11_get_default_root_xwindow(), 301 gdk_x11_get_default_root_xwindow(),
302 GetAtomName(ATOM_CHROME_LAYOUT_MODE), 302 GetAtomName(ATOM_CHROME_LAYOUT_MODE),
303 &value)) { 303 &value)) {
304 layout_mode_ = static_cast<WmIpcLayoutMode>(value); 304 layout_mode_ = static_cast<WmIpcLayoutMode>(value);
305 NotificationService::current()->Notify( 305 NotificationService::current()->Notify(
306 NotificationType::LAYOUT_MODE_CHANGED, 306 chrome::LAYOUT_MODE_CHANGED,
307 Source<WmIpc>(this), 307 Source<WmIpc>(this),
308 Details<WmIpcLayoutMode>(&layout_mode_)); 308 Details<WmIpcLayoutMode>(&layout_mode_));
309 } else { 309 } else {
310 DLOG(WARNING) << "Missing _CHROME_LAYOUT_MODE property on root window"; 310 DLOG(WARNING) << "Missing _CHROME_LAYOUT_MODE property on root window";
311 } 311 }
312 } 312 }
313 313
314 } // namespace chromeos 314 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698