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: views/controls/button/menu_button.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « views/controls/button/custom_button.cc ('k') | views/controls/button/radio_button.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "views/controls/button/menu_button.h" 5 #include "views/controls/button/menu_button.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "grit/ui_resources.h" 8 #include "grit/ui_resources.h"
9 #include "grit/ui_strings.h" 9 #include "grit/ui_strings.h"
10 #include "ui/base/accessibility/accessible_view_state.h" 10 #include "ui/base/accessibility/accessible_view_state.h"
11 #include "ui/base/dragdrop/drag_drop_types.h" 11 #include "ui/base/dragdrop/drag_drop_types.h"
12 #include "ui/base/l10n/l10n_util.h" 12 #include "ui/base/l10n/l10n_util.h"
13 #include "ui/base/resource/resource_bundle.h" 13 #include "ui/base/resource/resource_bundle.h"
14 #include "ui/gfx/canvas.h" 14 #include "ui/gfx/canvas.h"
15 #include "ui/gfx/screen.h" 15 #include "ui/gfx/screen.h"
16 #include "ui/views/events/event.h" 16 #include "ui/views/events/event.h"
17 #include "ui/views/widget/root_view.h"
18 #include "ui/views/widget/widget.h"
17 #include "views/controls/button/button.h" 19 #include "views/controls/button/button.h"
18 #include "views/controls/menu/view_menu_delegate.h" 20 #include "views/controls/menu/view_menu_delegate.h"
19 #include "views/widget/root_view.h"
20 #include "views/widget/widget.h"
21 21
22 using base::Time; 22 using base::Time;
23 using base::TimeDelta; 23 using base::TimeDelta;
24 24
25 namespace views { 25 namespace views {
26 26
27 // The amount of time, in milliseconds, we wait before allowing another mouse 27 // The amount of time, in milliseconds, we wait before allowing another mouse
28 // pressed event to show the menu. 28 // pressed event to show the menu.
29 static const int64 kMinimumTimeBetweenButtonClicks = 100; 29 static const int64 kMinimumTimeBetweenButtonClicks = 100;
30 30
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 if (!GetWidget()) { 254 if (!GetWidget()) {
255 NOTREACHED(); 255 NOTREACHED();
256 return 0; 256 return 0;
257 } 257 }
258 258
259 gfx::Rect monitor_bounds = GetWidget()->GetWorkAreaBoundsInScreen(); 259 gfx::Rect monitor_bounds = GetWidget()->GetWorkAreaBoundsInScreen();
260 return monitor_bounds.right() - 1; 260 return monitor_bounds.right() - 1;
261 } 261 }
262 262
263 } // namespace views 263 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/button/custom_button.cc ('k') | views/controls/button/radio_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698