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

Unified Diff: ui/aura/window_event_dispatcher.h

Issue 2872343003: Remove InputMethodEventHandler. (Closed)
Patch Set: Fix X11 and Win Created 3 years, 7 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
Index: ui/aura/window_event_dispatcher.h
diff --git a/ui/aura/window_event_dispatcher.h b/ui/aura/window_event_dispatcher.h
index 4ec5804b9d7da69b42f2eae6c641968e41166128..fad430eed2f14b3713ab996b138b189cc75da4a8 100644
--- a/ui/aura/window_event_dispatcher.h
+++ b/ui/aura/window_event_dispatcher.h
@@ -120,6 +120,10 @@ class AURA_EXPORT WindowEventDispatcher : public ui::EventProcessor,
// observer.
void OnPostNotifiedWindowDestroying(Window* window);
+ // True to skip sending event to the InputMethod.
+ void set_skip_ime(bool skip_ime) { skip_ime_ = skip_ime; }
+ bool should_skip_ime() const { return skip_ime_; }
+
private:
FRIEND_TEST_ALL_PREFIXES(WindowEventDispatcherTest,
KeepTranslatedEventInRoot);
@@ -238,6 +242,7 @@ class AURA_EXPORT WindowEventDispatcher : public ui::EventProcessor,
ui::MouseEvent* event);
ui::EventDispatchDetails PreDispatchTouchEvent(Window* target,
ui::TouchEvent* event);
+ ui::EventDispatchDetails PreDispatchKeyEvent(ui::KeyEvent* event);
WindowTreeHost* host_;
@@ -270,6 +275,8 @@ class AURA_EXPORT WindowEventDispatcher : public ui::EventProcessor,
// The default EventTargeter for WindowEventDispatcher generated events.
std::unique_ptr<WindowTargeter> event_targeter_;
+ bool skip_ime_;
+
// Used to schedule reposting an event.
base::WeakPtrFactory<WindowEventDispatcher> repost_event_factory_;

Powered by Google App Engine
This is Rietveld 408576698