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

Side by Side Diff: ash/mus/window_manager.h

Issue 2125883003: Adds ability for pre-target accelerators to not consume events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 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
« no previous file with comments | « ash/accelerators/accelerator_delegate.cc ('k') | ash/mus/window_manager.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MUS_WINDOW_MANAGER_H_ 5 #ifndef ASH_MUS_WINDOW_MANAGER_H_
6 #define ASH_MUS_WINDOW_MANAGER_H_ 6 #define ASH_MUS_WINDOW_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 bool OnWmSetProperty( 93 bool OnWmSetProperty(
94 ::ui::Window* window, 94 ::ui::Window* window,
95 const std::string& name, 95 const std::string& name,
96 std::unique_ptr<std::vector<uint8_t>>* new_data) override; 96 std::unique_ptr<std::vector<uint8_t>>* new_data) override;
97 ::ui::Window* OnWmCreateTopLevelWindow( 97 ::ui::Window* OnWmCreateTopLevelWindow(
98 std::map<std::string, std::vector<uint8_t>>* properties) override; 98 std::map<std::string, std::vector<uint8_t>>* properties) override;
99 void OnWmClientJankinessChanged(const std::set<::ui::Window*>& client_windows, 99 void OnWmClientJankinessChanged(const std::set<::ui::Window*>& client_windows,
100 bool not_responding) override; 100 bool not_responding) override;
101 void OnWmNewDisplay(::ui::Window* window, 101 void OnWmNewDisplay(::ui::Window* window,
102 const display::Display& display) override; 102 const display::Display& display) override;
103 void OnAccelerator(uint32_t id, const ui::Event& event) override;
104 void OnWmPerformMoveLoop(::ui::Window* window, 103 void OnWmPerformMoveLoop(::ui::Window* window,
105 ::ui::mojom::MoveLoopSource source, 104 ::ui::mojom::MoveLoopSource source,
106 const gfx::Point& cursor_location, 105 const gfx::Point& cursor_location,
107 const base::Callback<void(bool)>& on_done) override; 106 const base::Callback<void(bool)>& on_done) override;
108 void OnWmCancelMoveLoop(::ui::Window* window) override; 107 void OnWmCancelMoveLoop(::ui::Window* window) override;
108 ui::mojom::EventResult OnAccelerator(uint32_t id,
109 const ui::Event& event) override;
109 110
110 shell::Connector* connector_; 111 shell::Connector* connector_;
111 112
112 ::ui::WindowTreeClient* window_tree_client_ = nullptr; 113 ::ui::WindowTreeClient* window_tree_client_ = nullptr;
113 114
114 ::ui::WindowManagerClient* window_manager_client_ = nullptr; 115 ::ui::WindowManagerClient* window_manager_client_ = nullptr;
115 116
116 std::unique_ptr<ShadowController> shadow_controller_; 117 std::unique_ptr<ShadowController> shadow_controller_;
117 118
118 std::set<std::unique_ptr<RootWindowController>> root_window_controllers_; 119 std::set<std::unique_ptr<RootWindowController>> root_window_controllers_;
119 120
120 base::ObserverList<WindowManagerObserver> observers_; 121 base::ObserverList<WindowManagerObserver> observers_;
121 122
122 std::unique_ptr<display::Screen> screen_; 123 std::unique_ptr<display::Screen> screen_;
123 124
124 std::unique_ptr<WmShellMus> shell_; 125 std::unique_ptr<WmShellMus> shell_;
125 126
126 std::unique_ptr<WmLookupMus> lookup_; 127 std::unique_ptr<WmLookupMus> lookup_;
127 128
128 DISALLOW_COPY_AND_ASSIGN(WindowManager); 129 DISALLOW_COPY_AND_ASSIGN(WindowManager);
129 }; 130 };
130 131
131 } // namespace mus 132 } // namespace mus
132 } // namespace ash 133 } // namespace ash
133 134
134 #endif // ASH_MUS_WINDOW_MANAGER_H_ 135 #endif // ASH_MUS_WINDOW_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_delegate.cc ('k') | ash/mus/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698