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

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

Issue 1951223002: MacViews: Fix failing Menu Runner Cocoa Tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_IMPL_COCOA_H_ 5 #ifndef UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_IMPL_COCOA_H_
6 #define UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_IMPL_COCOA_H_ 6 #define UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_IMPL_COCOA_H_
7 7
8 #include "ui/views/controls/menu/menu_runner_impl_interface.h" 8 #include "ui/views/controls/menu/menu_runner_impl_interface.h"
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 21 matching lines...) Expand all
32 int32_t run_types) override; 32 int32_t run_types) override;
33 void Cancel() override; 33 void Cancel() override;
34 base::TimeDelta GetClosingEventTime() const override; 34 base::TimeDelta GetClosingEventTime() const override;
35 35
36 private: 36 private:
37 ~MenuRunnerImplCocoa() override; 37 ~MenuRunnerImplCocoa() override;
38 38
39 // The Cocoa menu controller that this instance is bridging. 39 // The Cocoa menu controller that this instance is bridging.
40 base::scoped_nsobject<MenuController> menu_controller_; 40 base::scoped_nsobject<MenuController> menu_controller_;
41 41
42 // Are we in run waiting for it to return? 42 // Are we inside a RunMenuAt() call?
43 bool running_; 43 bool in_run_menu_at_;
44 44
45 // Set if |running_| and Release() has been invoked. 45 // Set if |running_| and Release() has been invoked.
46 bool delete_after_run_; 46 bool delete_after_run_;
47 47
48 // The timestamp of the event which closed the menu - or 0. 48 // The timestamp of the event which closed the menu - or 0.
49 base::TimeDelta closing_event_time_; 49 base::TimeDelta closing_event_time_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(MenuRunnerImplCocoa); 51 DISALLOW_COPY_AND_ASSIGN(MenuRunnerImplCocoa);
52 }; 52 };
53 53
54 } // namespace internal 54 } // namespace internal
55 } // namespace views 55 } // namespace views
56 56
57 #endif // UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_IMPL_COCOA_H_ 57 #endif // UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_IMPL_COCOA_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/menu/menu_runner_impl_cocoa.mm » ('j') | ui/views/controls/menu/menu_runner_impl_cocoa.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698