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

Side by Side Diff: views/view_win.cc

Issue 570014: Adding drag-drop support in and out of the Browser Action overflow menu.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 | Annotate | Revision Log
« views/view.h ('K') | « views/view_gtk.cc ('k') | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/view.h" 5 #include "views/view.h"
6 6
7 #include "app/drag_drop_types.h" 7 #include "app/drag_drop_types.h"
8 #include "app/gfx/canvas.h" 8 #include "app/gfx/canvas.h"
9 #include "app/gfx/path.h" 9 #include "app/gfx/path.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "views/accessibility/view_accessibility_wrapper.h" 11 #include "views/accessibility/view_accessibility_wrapper.h"
12 #include "views/border.h" 12 #include "views/border.h"
13 #include "views/widget/root_view.h" 13 #include "views/widget/root_view.h"
14 #include "views/widget/widget.h" 14 #include "views/widget/widget.h"
15 15
16 namespace views { 16 namespace views {
17 17
18 // static 18 // static
19 int View::GetDoubleClickTimeMS() { 19 int View::GetDoubleClickTimeMS() {
20 return ::GetDoubleClickTime(); 20 return ::GetDoubleClickTime();
21 } 21 }
22 22
23 // static
24 int View::GetMenuShowDelay() {
25 static DWORD delay = 0;
26 if (!delay && !SystemParametersInfo(SPI_GETMENUSHOWDELAY, 0, &delay, 0))
27 delay = View::kShowFolderDropMenuDelay;
28 return delay;
29 }
30
23 ViewAccessibilityWrapper* View::GetViewAccessibilityWrapper() { 31 ViewAccessibilityWrapper* View::GetViewAccessibilityWrapper() {
24 if (accessibility_.get() == NULL) { 32 if (accessibility_.get() == NULL) {
25 accessibility_.reset(new ViewAccessibilityWrapper(this)); 33 accessibility_.reset(new ViewAccessibilityWrapper(this));
26 } 34 }
27 return accessibility_.get(); 35 return accessibility_.get();
28 } 36 }
29 37
30 int View::GetHorizontalDragThreshold() { 38 int View::GetHorizontalDragThreshold() {
31 static int threshold = -1; 39 static int threshold = -1;
32 if (threshold == -1) 40 if (threshold == -1)
33 threshold = GetSystemMetrics(SM_CXDRAG) / 2; 41 threshold = GetSystemMetrics(SM_CXDRAG) / 2;
34 return threshold; 42 return threshold;
35 } 43 }
36 44
37 int View::GetVerticalDragThreshold() { 45 int View::GetVerticalDragThreshold() {
38 static int threshold = -1; 46 static int threshold = -1;
39 if (threshold == -1) 47 if (threshold == -1)
40 threshold = GetSystemMetrics(SM_CYDRAG) / 2; 48 threshold = GetSystemMetrics(SM_CYDRAG) / 2;
41 return threshold; 49 return threshold;
42 } 50 }
43 51
44 } // namespace views 52 } // namespace views
OLDNEW
« views/view.h ('K') | « views/view_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698