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

Unified Diff: mandoline/ui/desktop_ui/browser_window.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 | « components/mus/ws/window_tree_unittest.cc ('k') | mandoline/ui/desktop_ui/browser_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/desktop_ui/browser_window.h
diff --git a/mandoline/ui/desktop_ui/browser_window.h b/mandoline/ui/desktop_ui/browser_window.h
index fff5f7fee3f77094826982396713503ca37f1a26..67e21949ebe22bbe960b31f27248ce77ad416226 100644
--- a/mandoline/ui/desktop_ui/browser_window.h
+++ b/mandoline/ui/desktop_ui/browser_window.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include "base/macros.h"
+#include "components/mus/public/cpp/window_manager_delegate.h"
#include "components/mus/public/cpp/window_tree_connection.h"
#include "components/mus/public/cpp/window_tree_delegate.h"
#include "components/mus/public/interfaces/window_tree_host.mojom.h"
@@ -44,11 +45,11 @@ class ProgressView;
class ToolbarView;
class BrowserWindow : public mus::WindowTreeDelegate,
- public mus::mojom::WindowTreeHostClient,
public web_view::mojom::WebViewClient,
public ViewEmbedder,
public mojo::InterfaceFactory<ViewEmbedder>,
- public FindBarDelegate {
+ public FindBarDelegate,
+ public mus::WindowManagerDelegate {
public:
BrowserWindow(mojo::ApplicationImpl* app,
mus::mojom::WindowTreeHostFactory* host_factory,
@@ -73,7 +74,14 @@ class BrowserWindow : public mus::WindowTreeDelegate,
void OnEmbed(mus::Window* root) override;
void OnConnectionLost(mus::WindowTreeConnection* connection) override;
- // Overridden from WindowTreeHostClient:
+ // Overridden from WindowManagerDelegate:
+ void SetWindowManagerClient(mus::WindowManagerClient* client) override;
+ bool OnWmSetBounds(mus::Window* window, gfx::Rect* bounds) override;
+ bool OnWmSetProperty(mus::Window* window,
+ const std::string& name,
+ 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;
// Overridden from web_view::mojom::WebViewClient:
@@ -107,10 +115,10 @@ class BrowserWindow : public mus::WindowTreeDelegate,
void Layout(views::View* host);
mojo::ApplicationImpl* app_;
+ mus::WindowManagerClient* window_manager_client_;
scoped_ptr<ui::mojo::UIInit> ui_init_;
scoped_ptr<views::AuraInit> aura_init_;
mus::mojom::WindowTreeHostPtr host_;
- mojo::Binding<WindowTreeHostClient> host_client_binding_;
BrowserManager* manager_;
ToolbarView* toolbar_view_;
ProgressView* progress_bar_;
« no previous file with comments | « components/mus/ws/window_tree_unittest.cc ('k') | mandoline/ui/desktop_ui/browser_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698