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

Unified Diff: ui/views/view.h

Issue 1544803004: Fix accelerator handling for in-menu buttons in the app menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add back the unit test, disable logic on ChromeOS 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
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index a5ef00dae1dc83cdaeccd314cc80e239ff475c47..f98f3f503c77ce3c211da1c9e3c883d4883c9d2e 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -1431,6 +1431,11 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
const gfx::Point& press_pt,
ui::DragDropTypes::DragEventSource source);
+ // Returns true if this is not a top level widget. Virtual for tests.
+ virtual bool IsChildWidget() const;
+ // Returns true if the focus is not in a top level widget. Virtual for tests.
+ virtual bool FocusInChildWidget() const;
sadrul 2016/01/28 08:11:00 These should not be virtual methods. It should be
meacer 2016/01/29 00:37:36 Done.
+
//////////////////////////////////////////////////////////////////////////////
// Creation and lifetime -----------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698