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

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

Issue 8620008: Get rid of Widget::ConvertPointFromAncestor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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 | « ui/views/widget/native_widget_win.h ('k') | ui/views/widget/widget.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) 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 "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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 void NativeWidgetWin::ClearNativeFocus() { 984 void NativeWidgetWin::ClearNativeFocus() {
985 ::SetFocus(GetNativeView()); 985 ::SetFocus(GetNativeView());
986 } 986 }
987 987
988 void NativeWidgetWin::FocusNativeView(gfx::NativeView native_view) { 988 void NativeWidgetWin::FocusNativeView(gfx::NativeView native_view) {
989 // Only reset focus if hwnd is not already focused. 989 // Only reset focus if hwnd is not already focused.
990 if (native_view && ::GetFocus() != native_view) 990 if (native_view && ::GetFocus() != native_view)
991 ::SetFocus(native_view); 991 ::SetFocus(native_view);
992 } 992 }
993 993
994 bool NativeWidgetWin::ConvertPointFromAncestor(
995 const Widget* ancestor, gfx::Point* point) const {
996 NOTREACHED();
997 return false;
998 }
999
1000 gfx::Rect NativeWidgetWin::GetWorkAreaBoundsInScreen() const { 994 gfx::Rect NativeWidgetWin::GetWorkAreaBoundsInScreen() const {
1001 return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView()); 995 return gfx::Screen::GetMonitorWorkAreaNearestWindow(GetNativeView());
1002 } 996 }
1003 997
1004 void NativeWidgetWin::SetInactiveRenderingDisabled(bool value) { 998 void NativeWidgetWin::SetInactiveRenderingDisabled(bool value) {
1005 } 999 }
1006 1000
1007 //////////////////////////////////////////////////////////////////////////////// 1001 ////////////////////////////////////////////////////////////////////////////////
1008 // NativeWidgetWin, MessageLoop::Observer implementation: 1002 // NativeWidgetWin, MessageLoop::Observer implementation:
1009 1003
(...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after
2508 return (GetKeyState(VK_LBUTTON) & 0x80) || 2502 return (GetKeyState(VK_LBUTTON) & 0x80) ||
2509 (GetKeyState(VK_RBUTTON) & 0x80) || 2503 (GetKeyState(VK_RBUTTON) & 0x80) ||
2510 (GetKeyState(VK_MBUTTON) & 0x80) || 2504 (GetKeyState(VK_MBUTTON) & 0x80) ||
2511 (GetKeyState(VK_XBUTTON1) & 0x80) || 2505 (GetKeyState(VK_XBUTTON1) & 0x80) ||
2512 (GetKeyState(VK_XBUTTON2) & 0x80); 2506 (GetKeyState(VK_XBUTTON2) & 0x80);
2513 } 2507 }
2514 2508
2515 } // namespace internal 2509 } // namespace internal
2516 2510
2517 } // namespace views 2511 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_win.h ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698