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

Side by Side Diff: ui/platform_window/win/win_window.cc

Issue 403263002: platform-window: Add a PlatformWindowFactory for creating windows. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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/platform_window/win/win_window.h ('k') | ui/platform_window/win/win_window.gyp » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/platform_window/win/win_window.h" 5 #include "ui/platform_window/win/win_window.h"
6 6
7 #include "ui/events/event.h" 7 #include "ui/events/event.h"
8 #include "ui/events/event_utils.h" 8 #include "ui/events/event_utils.h"
9 #include "ui/gfx/win/msg_util.h" 9 #include "ui/gfx/win/msg_util.h"
10 #include "ui/platform_window/platform_window_delegate.h" 10 #include "ui/platform_window/types/platform_window_delegate.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 namespace { 14 namespace {
15 15
16 bool use_popup_as_root_window_for_test = false; 16 bool use_popup_as_root_window_for_test = false;
17 17
18 gfx::Rect GetWindowBoundsForClientBounds(DWORD style, DWORD ex_style, 18 gfx::Rect GetWindowBoundsForClientBounds(DWORD style, DWORD ex_style,
19 const gfx::Rect& bounds) { 19 const gfx::Rect& bounds) {
20 RECT wr; 20 RECT wr;
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 namespace test { 170 namespace test {
171 171
172 // static 172 // static
173 void SetUsePopupAsRootWindowForTest(bool use) { 173 void SetUsePopupAsRootWindowForTest(bool use) {
174 use_popup_as_root_window_for_test = use; 174 use_popup_as_root_window_for_test = use;
175 } 175 }
176 176
177 } // namespace test 177 } // namespace test
178 } // namespace ui 178 } // namespace ui
OLDNEW
« no previous file with comments | « ui/platform_window/win/win_window.h ('k') | ui/platform_window/win/win_window.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698