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

Side by Side Diff: ash/wm/property_util.cc

Issue 10905080: Exempt status bubble windows from status bar darkening (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review nit Created 8 years, 3 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
« no previous file with comments | « ash/wm/property_util.h ('k') | ash/wm/window_properties.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/wm/property_util.h" 5 #include "ash/wm/property_util.h"
6 6
7 #include "ash/ash_export.h" 7 #include "ash/ash_export.h"
8 #include "ash/screen_ash.h" 8 #include "ash/screen_ash.h"
9 #include "ash/wm/window_properties.h" 9 #include "ash/wm/window_properties.h"
10 #include "ash/wm/window_util.h" 10 #include "ash/wm/window_util.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } 45 }
46 46
47 void SetTrackedByWorkspace(aura::Window* window, bool value) { 47 void SetTrackedByWorkspace(aura::Window* window, bool value) {
48 window->SetProperty(internal::kWindowTrackedByWorkspaceKey, value); 48 window->SetProperty(internal::kWindowTrackedByWorkspaceKey, value);
49 } 49 }
50 50
51 bool GetTrackedByWorkspace(aura::Window* window) { 51 bool GetTrackedByWorkspace(aura::Window* window) {
52 return window->GetProperty(internal::kWindowTrackedByWorkspaceKey); 52 return window->GetProperty(internal::kWindowTrackedByWorkspaceKey);
53 } 53 }
54 54
55 void SetIgnoredByShelf(aura::Window* window, bool value) {
56 window->SetProperty(internal::kIgnoredByShelfKey, value);
57 }
58
59 bool GetIgnoredByShelf(aura::Window* window) {
60 return window->GetProperty(internal::kIgnoredByShelfKey);
61 }
62
55 void SetPersistsAcrossAllWorkspaces( 63 void SetPersistsAcrossAllWorkspaces(
56 aura::Window* window, 64 aura::Window* window,
57 WindowPersistsAcrossAllWorkspacesType type) { 65 WindowPersistsAcrossAllWorkspacesType type) {
58 window->SetProperty( 66 window->SetProperty(
59 internal::kWindowPersistsAcrossAllWorkspacesKey, type); 67 internal::kWindowPersistsAcrossAllWorkspacesKey, type);
60 } 68 }
61 69
62 bool GetPersistsAcrossAllWorkspaces(aura::Window* window) { 70 bool GetPersistsAcrossAllWorkspaces(aura::Window* window) {
63 switch (window->GetProperty( 71 switch (window->GetProperty(
64 internal::kWindowPersistsAcrossAllWorkspacesKey)) { 72 internal::kWindowPersistsAcrossAllWorkspacesKey)) {
(...skipping 16 matching lines...) Expand all
81 return root_window ? 89 return root_window ?
82 root_window->GetProperty(internal::kRootWindowControllerKey) : NULL; 90 root_window->GetProperty(internal::kRootWindowControllerKey) : NULL;
83 } 91 }
84 92
85 void SetRootWindowController(aura::RootWindow* root_window, 93 void SetRootWindowController(aura::RootWindow* root_window,
86 internal::RootWindowController* controller) { 94 internal::RootWindowController* controller) {
87 root_window->SetProperty(internal::kRootWindowControllerKey, controller); 95 root_window->SetProperty(internal::kRootWindowControllerKey, controller);
88 } 96 }
89 97
90 } // namespace ash 98 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/property_util.h ('k') | ash/wm/window_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698