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

Side by Side Diff: ui/views/widget/native_widget_win.cc

Issue 10479010: Gesture related changes for views: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test and add some mores Created 8 years, 6 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
« no previous file with comments | « ui/views/widget/native_widget_private.h ('k') | ui/views/widget/root_view.h » ('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) 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 #include "ui/views/widget/native_widget_win.h" 5 #include "ui/views/widget/native_widget_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 2705 matching lines...) Expand 10 before | Expand all | Expand 10 after
2716 2716
2717 // static 2717 // static
2718 bool NativeWidgetPrivate::IsMouseButtonDown() { 2718 bool NativeWidgetPrivate::IsMouseButtonDown() {
2719 return (GetKeyState(VK_LBUTTON) & 0x80) || 2719 return (GetKeyState(VK_LBUTTON) & 0x80) ||
2720 (GetKeyState(VK_RBUTTON) & 0x80) || 2720 (GetKeyState(VK_RBUTTON) & 0x80) ||
2721 (GetKeyState(VK_MBUTTON) & 0x80) || 2721 (GetKeyState(VK_MBUTTON) & 0x80) ||
2722 (GetKeyState(VK_XBUTTON1) & 0x80) || 2722 (GetKeyState(VK_XBUTTON1) & 0x80) ||
2723 (GetKeyState(VK_XBUTTON2) & 0x80); 2723 (GetKeyState(VK_XBUTTON2) & 0x80);
2724 } 2724 }
2725 2725
2726 // static
2727 bool NativeWidgetPrivate::IsTouchDown() {
2728 // This currently isn't necessary because we're not generating touch events on
2729 // windows. When we do, this will need to be updated.
2730 return false;
2731 }
2732
2726 } // namespace internal 2733 } // namespace internal
2727 2734
2728 } // namespace views 2735 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_private.h ('k') | ui/views/widget/root_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698