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

Unified Diff: mash/wm/window_manager.h

Issue 1656123002: Moves accelerator registration to WindowManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mandoline Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mash/wm/root_windows_observer.h ('k') | mash/wm/window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/window_manager.h
diff --git a/mash/wm/window_manager.h b/mash/wm/window_manager.h
index 443a58aeba15b99ac919e4a62bb3859b2b87a19b..4cf6d0040916a5c99355dbf5f9779bcd26a25546 100644
--- a/mash/wm/window_manager.h
+++ b/mash/wm/window_manager.h
@@ -26,6 +26,10 @@ class WindowManager : public mus::WindowObserver,
void Initialize(RootWindowController* root_controller);
+ mus::WindowManagerClient* window_manager_client() {
+ return window_manager_client_;
+ }
+
private:
gfx::Rect CalculateDefaultBounds(mus::Window* window) const;
gfx::Rect GetMaximizedWindowBounds() const;
@@ -45,6 +49,7 @@ class WindowManager : public mus::WindowObserver,
scoped_ptr<std::vector<uint8_t>>* new_data) override;
mus::Window* OnWmCreateTopLevelWindow(
std::map<std::string, std::vector<uint8_t>>* properties) override;
+ void OnAccelerator(uint32_t id, mus::mojom::EventPtr event) override;
RootWindowController* root_controller_;
mus::WindowManagerClient* window_manager_client_;
« no previous file with comments | « mash/wm/root_windows_observer.h ('k') | mash/wm/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698