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

Side by Side Diff: ash/common/wm/wm_event.h

Issue 2285633002: Add WM_EVENT_TRUSTED_PIN and WINDOW_STATE_TYPE_TRUSTED_PINNED to Ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 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
« no previous file with comments | « ash/common/wm/window_state.cc ('k') | ash/common/wm/wm_types.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef ASH_COMMON_WM_WM_EVENT_H_ 5 #ifndef ASH_COMMON_WM_WM_EVENT_H_
6 #define ASH_COMMON_WM_WM_EVENT_H_ 6 #define ASH_COMMON_WM_WM_EVENT_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/wm/wm_types.h" 9 #include "ash/common/wm/wm_types.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 // Bounds of the display has changed. 85 // Bounds of the display has changed.
86 WM_EVENT_DISPLAY_BOUNDS_CHANGED, 86 WM_EVENT_DISPLAY_BOUNDS_CHANGED,
87 87
88 // Bounds of the work area has changed. This will not occur when the work 88 // Bounds of the work area has changed. This will not occur when the work
89 // area has changed as a result of DISPLAY_BOUNDS_CHANGED. 89 // area has changed as a result of DISPLAY_BOUNDS_CHANGED.
90 WM_EVENT_WORKAREA_BOUNDS_CHANGED, 90 WM_EVENT_WORKAREA_BOUNDS_CHANGED,
91 91
92 // A user requested to pin a window. 92 // A user requested to pin a window.
93 WM_EVENT_PIN, 93 WM_EVENT_PIN,
94
95 // A user requested to pin a window for a trusted application. This is similar
96 // WM_EVENT_PIN but does not allow user to exit the mode by shortcut key.
97 WM_EVENT_TRUSTED_PIN,
94 }; 98 };
95 99
96 class ASH_EXPORT WMEvent { 100 class ASH_EXPORT WMEvent {
97 public: 101 public:
98 explicit WMEvent(WMEventType type); 102 explicit WMEvent(WMEventType type);
99 virtual ~WMEvent(); 103 virtual ~WMEvent();
100 104
101 WMEventType type() const { return type_; } 105 WMEventType type() const { return type_; }
102 106
103 private: 107 private:
(...skipping 12 matching lines...) Expand all
116 private: 120 private:
117 gfx::Rect requested_bounds_; 121 gfx::Rect requested_bounds_;
118 122
119 DISALLOW_COPY_AND_ASSIGN(SetBoundsEvent); 123 DISALLOW_COPY_AND_ASSIGN(SetBoundsEvent);
120 }; 124 };
121 125
122 } // namespace wm 126 } // namespace wm
123 } // namespace ash 127 } // namespace ash
124 128
125 #endif // ASH_COMMON_WM_WM_EVENT_H_ 129 #endif // ASH_COMMON_WM_WM_EVENT_H_
OLDNEW
« no previous file with comments | « ash/common/wm/window_state.cc ('k') | ash/common/wm/wm_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698