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

Unified Diff: mash/wm/window_manager_application.cc

Issue 1487333004: mus: Notify the client whether adding an accelerator was successful. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years 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 | « mandoline/ui/desktop_ui/browser_window.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/window_manager_application.cc
diff --git a/mash/wm/window_manager_application.cc b/mash/wm/window_manager_application.cc
index 1e934c6699654233331f22d35dc5ddc2f27ed10b..1403f5a57a94037ea5bc1cbce5d23c8672796017 100644
--- a/mash/wm/window_manager_application.cc
+++ b/mash/wm/window_manager_application.cc
@@ -4,6 +4,7 @@
#include "mash/wm/window_manager_application.h"
+#include "base/bind.h"
#include "components/mus/common/util.h"
#include "components/mus/public/cpp/event_matcher.h"
#include "components/mus/public/cpp/window.h"
@@ -23,6 +24,11 @@ namespace mash {
namespace wm {
namespace {
const uint32_t kWindowSwitchCmd = 1;
+
+void AssertTrue(bool success) {
+ DCHECK(success);
+}
+
} // namespace
WindowManagerApplication::WindowManagerApplication()
@@ -48,7 +54,8 @@ void WindowManagerApplication::AddAccelerators() {
window_tree_host_->AddAccelerator(
kWindowSwitchCmd,
mus::CreateKeyMatcher(mus::mojom::KEYBOARD_CODE_TAB,
- mus::mojom::EVENT_FLAGS_CONTROL_DOWN));
+ mus::mojom::EVENT_FLAGS_CONTROL_DOWN),
+ base::Bind(&AssertTrue));
}
void WindowManagerApplication::Initialize(mojo::ApplicationImpl* app) {
« no previous file with comments | « mandoline/ui/desktop_ui/browser_window.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698