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

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

Issue 645513008: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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/wm/cursor_manager_chromeos.h ('k') | ash/wm/default_window_resizer.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_WM_DEFAULT_STATE_H_ 5 #ifndef ASH_WM_DEFAULT_STATE_H_
6 #define ASH_WM_DEFAULT_STATE_H_ 6 #define ASH_WM_DEFAULT_STATE_H_
7 7
8 #include "ash/wm/window_state.h" 8 #include "ash/wm/window_state.h"
9 #include "ui/gfx/display.h" 9 #include "ui/gfx/display.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace wm { 12 namespace wm {
13 class SetBoundsEvent; 13 class SetBoundsEvent;
14 14
15 // DefaultState implements Ash behavior without state machine. 15 // DefaultState implements Ash behavior without state machine.
16 class DefaultState : public WindowState::State { 16 class DefaultState : public WindowState::State {
17 public: 17 public:
18 explicit DefaultState(WindowStateType initial_state_type); 18 explicit DefaultState(WindowStateType initial_state_type);
19 virtual ~DefaultState(); 19 ~DefaultState() override;
20 20
21 // WindowState::State overrides: 21 // WindowState::State overrides:
22 virtual void OnWMEvent(WindowState* window_state, 22 void OnWMEvent(WindowState* window_state, const WMEvent* event) override;
23 const WMEvent* event) override; 23 WindowStateType GetType() const override;
24 virtual WindowStateType GetType() const override; 24 void AttachState(WindowState* window_state,
25 virtual void AttachState(WindowState* window_state, 25 WindowState::State* previous_state) override;
26 WindowState::State* previous_state) override; 26 void DetachState(WindowState* window_state) override;
27 virtual void DetachState(WindowState* window_state) override;
28 27
29 private: 28 private:
30 // Process state dependent events, such as TOGGLE_MAXIMIZED, 29 // Process state dependent events, such as TOGGLE_MAXIMIZED,
31 // TOGGLE_FULLSCREEN. 30 // TOGGLE_FULLSCREEN.
32 static bool ProcessCompoundEvents(WindowState* window_state, 31 static bool ProcessCompoundEvents(WindowState* window_state,
33 const WMEvent* event); 32 const WMEvent* event);
34 33
35 // Process workspace related events, such as DISPLAY_BOUNDS_CHANGED. 34 // Process workspace related events, such as DISPLAY_BOUNDS_CHANGED.
36 static bool ProcessWorkspaceEvents(WindowState* window_state, 35 static bool ProcessWorkspaceEvents(WindowState* window_state,
37 const WMEvent* event); 36 const WMEvent* event);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // The window state only gets remembered for DCHECK reasons. 71 // The window state only gets remembered for DCHECK reasons.
73 WindowState* stored_window_state_; 72 WindowState* stored_window_state_;
74 73
75 DISALLOW_COPY_AND_ASSIGN(DefaultState); 74 DISALLOW_COPY_AND_ASSIGN(DefaultState);
76 }; 75 };
77 76
78 } // namespace wm 77 } // namespace wm
79 } // namespace ash 78 } // namespace ash
80 79
81 #endif // ASH_WM_DEFAULT_STATE_H_ 80 #endif // ASH_WM_DEFAULT_STATE_H_
OLDNEW
« no previous file with comments | « ash/wm/cursor_manager_chromeos.h ('k') | ash/wm/default_window_resizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698