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

Side by Side Diff: ash/wm/window_state_observer.h

Issue 27458002: Allow setting different hit test bounds overrides for mouse and touch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WM_WINDOW_STATE_OBSERVER_H_ 5 #ifndef ASH_WM_WINDOW_STATE_OBSERVER_H_
6 #define ASH_WM_WINDOW_STATE_OBSERVER_H_ 6 #define ASH_WM_WINDOW_STATE_OBSERVER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/wm_types.h" 9 #include "ash/wm/wm_types.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace wm { 12 namespace wm {
13 class WindowState; 13 class WindowState;
14 14
15 class ASH_EXPORT WindowStateObserver { 15 class ASH_EXPORT WindowStateObserver {
16 public: 16 public:
17 // Called when the tracked_by_workspace has changed. 17 // Called when the tracked_by_workspace has changed.
18 virtual void OnTrackedByWorkspaceChanged( 18 virtual void OnTrackedByWorkspaceChanged(
19 WindowState* window, 19 WindowState* window,
20 bool old_value) {} 20 bool old_value) {}
21 21
22 // Called when the window's show type has changed. This is different from 22 // Called when the window's show type has changed. This is different from
23 // kWindowShowStatekey property change as this will be invoked when the window 23 // kWindowShowStatekey property change as this will be invoked when the window
24 // gets left/right maximized, and auto positioned. |old_type| is the value 24 // gets left/right maximized, and auto positioned. |old_type| is the value
25 // before the change. 25 // before the change.
26 virtual void OnWindowShowTypeChanged(WindowState* window_state, 26 virtual void OnWindowShowTypeChanged(WindowState* window_state,
27 WindowShowType old_type) {} 27 WindowShowType old_type) {}
28
29 // Called when the fullscreen type of a fullscreen window changes.
30 virtual void OnWindowFullscreenTypeChanged(WindowState* window_state,
31 FullscreenType old_type) {}
28 }; 32 };
29 33
30 } // namespace wm 34 } // namespace wm
31 } // namespace ash 35 } // namespace ash
32 36
33 #endif // ASH_WM_WINDOW_STATE_OBSERVER_H_ 37 #endif // ASH_WM_WINDOW_STATE_OBSERVER_H_
OLDNEW
« no previous file with comments | « ash/wm/window_state.cc ('k') | ash/wm/wm_types.h » ('j') | ui/aura/window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698