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

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

Issue 15114002: Reorder the NativeViews attached to a view via kViewHostKey according to the position of the view (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 ::SetParent(native_view, new_parent); 955 ::SetParent(native_view, new_parent);
956 956
957 // And now, notify them that they have a brand new parent. 957 // And now, notify them that they have a brand new parent.
958 for (Widget::Widgets::iterator it = widgets.begin(); 958 for (Widget::Widgets::iterator it = widgets.begin();
959 it != widgets.end(); ++it) { 959 it != widgets.end(); ++it) {
960 (*it)->NotifyNativeViewHierarchyChanged(true, new_parent); 960 (*it)->NotifyNativeViewHierarchyChanged(true, new_parent);
961 } 961 }
962 } 962 }
963 963
964 // static 964 // static
965 void NativeWidgetPrivate::ReorderLayers(gfx::NativeView parent,
966 View* root_view) {
967 }
968
969 // static
965 bool NativeWidgetPrivate::IsMouseButtonDown() { 970 bool NativeWidgetPrivate::IsMouseButtonDown() {
966 return (GetKeyState(VK_LBUTTON) & 0x80) || 971 return (GetKeyState(VK_LBUTTON) & 0x80) ||
967 (GetKeyState(VK_RBUTTON) & 0x80) || 972 (GetKeyState(VK_RBUTTON) & 0x80) ||
968 (GetKeyState(VK_MBUTTON) & 0x80) || 973 (GetKeyState(VK_MBUTTON) & 0x80) ||
969 (GetKeyState(VK_XBUTTON1) & 0x80) || 974 (GetKeyState(VK_XBUTTON1) & 0x80) ||
970 (GetKeyState(VK_XBUTTON2) & 0x80); 975 (GetKeyState(VK_XBUTTON2) & 0x80);
971 } 976 }
972 977
973 // static 978 // static
974 bool NativeWidgetPrivate::IsTouchDown() { 979 bool NativeWidgetPrivate::IsTouchDown() {
975 // This currently isn't necessary because we're not generating touch events on 980 // This currently isn't necessary because we're not generating touch events on
976 // windows. When we do, this will need to be updated. 981 // windows. When we do, this will need to be updated.
977 return false; 982 return false;
978 } 983 }
979 984
980 } // namespace internal 985 } // namespace internal
981 986
982 } // namespace views 987 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698