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

Side by Side Diff: ui/views/controls/menu/menu_runner.h

Issue 2828913003: Replace "nested message loop" with "nested run loop" in comments. (Closed)
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_H_ 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_H_ 6 #define UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 // Runs the menu. MenuDelegate::OnMenuClosed will be notified of the results. 103 // Runs the menu. MenuDelegate::OnMenuClosed will be notified of the results.
104 // If |anchor| uses a |BUBBLE_..| type, the bounds will get determined by 104 // If |anchor| uses a |BUBBLE_..| type, the bounds will get determined by
105 // using |bounds| as the thing to point at in screen coordinates. 105 // using |bounds| as the thing to point at in screen coordinates.
106 void RunMenuAt(Widget* parent, 106 void RunMenuAt(Widget* parent,
107 MenuButton* button, 107 MenuButton* button,
108 const gfx::Rect& bounds, 108 const gfx::Rect& bounds,
109 MenuAnchorPosition anchor, 109 MenuAnchorPosition anchor,
110 ui::MenuSourceType source_type); 110 ui::MenuSourceType source_type);
111 111
112 // Returns true if we're in a nested message loop running the menu. 112 // Returns true if we're in a nested run loop running the menu.
113 bool IsRunning() const; 113 bool IsRunning() const;
114 114
115 // Hides and cancels the menu. This does nothing if the menu is not open. 115 // Hides and cancels the menu. This does nothing if the menu is not open.
116 void Cancel(); 116 void Cancel();
117 117
118 // Returns the time from the event which closed the menu - or 0. 118 // Returns the time from the event which closed the menu - or 0.
119 base::TimeTicks closing_event_time() const; 119 base::TimeTicks closing_event_time() const;
120 120
121 private: 121 private:
122 friend class test::MenuRunnerTestAPI; 122 friend class test::MenuRunnerTestAPI;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 protected: 155 protected:
156 DisplayChangeListener() {} 156 DisplayChangeListener() {}
157 }; 157 };
158 158
159 } // namespace internal 159 } // namespace internal
160 160
161 } // namespace views 161 } // namespace views
162 162
163 #endif // UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_H_ 163 #endif // UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_H_
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_controller_unittest.cc ('k') | ui/views/controls/menu/menu_runner_cocoa_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698