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

Side by Side Diff: ui/views/win/hwnd_util_aurawin.cc

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
« no previous file with comments | « ui/views/widget/window_reorderer_unittest.cc ('k') | ui/wm/test/wm_test_helper.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/win/hwnd_util.h" 5 #include "ui/views/win/hwnd_util.h"
6 6
7 #include "ui/aura/root_window.h"
8 #include "ui/aura/window.h" 7 #include "ui/aura/window.h"
8 #include "ui/aura/window_event_dispatcher.h"
9 #include "ui/views/widget/widget.h" 9 #include "ui/views/widget/widget.h"
10 10
11 namespace views { 11 namespace views {
12 12
13 HWND HWNDForView(const View* view) { 13 HWND HWNDForView(const View* view) {
14 return view->GetWidget() ? HWNDForWidget(view->GetWidget()) : NULL; 14 return view->GetWidget() ? HWNDForWidget(view->GetWidget()) : NULL;
15 } 15 }
16 16
17 HWND HWNDForWidget(const Widget* widget) { 17 HWND HWNDForWidget(const Widget* widget) {
18 return HWNDForNativeWindow(widget->GetNativeWindow()); 18 return HWNDForNativeWindow(widget->GetNativeWindow());
(...skipping 19 matching lines...) Expand all
38 RECT rect = client_bounds.ToRECT(); 38 RECT rect = client_bounds.ToRECT();
39 DWORD style = ::GetWindowLong(hwnd, GWL_STYLE); 39 DWORD style = ::GetWindowLong(hwnd, GWL_STYLE);
40 DWORD ex_style = ::GetWindowLong(hwnd, GWL_EXSTYLE); 40 DWORD ex_style = ::GetWindowLong(hwnd, GWL_EXSTYLE);
41 AdjustWindowRectEx(&rect, style, FALSE, ex_style); 41 AdjustWindowRectEx(&rect, style, FALSE, ex_style);
42 return gfx::Rect(rect); 42 return gfx::Rect(rect);
43 } 43 }
44 return client_bounds; 44 return client_bounds;
45 } 45 }
46 46
47 } // namespace views 47 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/window_reorderer_unittest.cc ('k') | ui/wm/test/wm_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698