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

Side by Side Diff: views/window/window_win.cc

Issue 6257006: Move a bunch of random other files to src/ui/base... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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 | « views/window/window.cc ('k') | webkit/plugins/npapi/webplugin_delegate_impl.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "views/window/window_win.h" 5 #include "views/window/window_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include "app/theme_provider.h"
11 #include "app/win/win_util.h" 10 #include "app/win/win_util.h"
12 #include "base/i18n/rtl.h" 11 #include "base/i18n/rtl.h"
13 #include "base/win/windows_version.h" 12 #include "base/win/windows_version.h"
14 #include "gfx/canvas_skia_paint.h" 13 #include "gfx/canvas_skia_paint.h"
15 #include "gfx/font.h" 14 #include "gfx/font.h"
16 #include "gfx/icon_util.h" 15 #include "gfx/icon_util.h"
17 #include "gfx/path.h" 16 #include "gfx/path.h"
18 #include "ui/base/keycodes/keyboard_code_conversion_win.h" 17 #include "ui/base/keycodes/keyboard_code_conversion_win.h"
18 #include "ui/base/theme_provider.h"
19 #include "ui/base/win/hwnd_util.h" 19 #include "ui/base/win/hwnd_util.h"
20 #include "views/accessibility/view_accessibility.h" 20 #include "views/accessibility/view_accessibility.h"
21 #include "views/widget/root_view.h" 21 #include "views/widget/root_view.h"
22 #include "views/window/client_view.h" 22 #include "views/window/client_view.h"
23 #include "views/window/custom_frame_view.h" 23 #include "views/window/custom_frame_view.h"
24 #include "views/window/native_frame_view.h" 24 #include "views/window/native_frame_view.h"
25 #include "views/window/non_client_view.h" 25 #include "views/window/non_client_view.h"
26 #include "views/window/window_delegate.h" 26 #include "views/window/window_delegate.h"
27 27
28 namespace { 28 namespace {
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 531
532 ClientView* WindowWin::GetClientView() const { 532 ClientView* WindowWin::GetClientView() const {
533 return non_client_view_->client_view(); 533 return non_client_view_->client_view();
534 } 534 }
535 535
536 gfx::NativeWindow WindowWin::GetNativeWindow() const { 536 gfx::NativeWindow WindowWin::GetNativeWindow() const {
537 return GetNativeView(); 537 return GetNativeView();
538 } 538 }
539 539
540 bool WindowWin::ShouldUseNativeFrame() const { 540 bool WindowWin::ShouldUseNativeFrame() const {
541 ThemeProvider* tp = GetThemeProvider(); 541 ui::ThemeProvider* tp = GetThemeProvider();
542 if (!tp) 542 if (!tp)
543 return ui::ShouldUseVistaFrame(); 543 return ui::ShouldUseVistaFrame();
544 return tp->ShouldUseNativeFrame(); 544 return tp->ShouldUseNativeFrame();
545 } 545 }
546 546
547 /////////////////////////////////////////////////////////////////////////////// 547 ///////////////////////////////////////////////////////////////////////////////
548 // WindowWin, protected: 548 // WindowWin, protected:
549 549
550 WindowWin::WindowWin(WindowDelegate* window_delegate) 550 WindowWin::WindowWin(WindowDelegate* window_delegate)
551 : WidgetWin(), 551 : WidgetWin(),
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 Window::CloseSecondaryWidget(root_view->GetWidget()); 1575 Window::CloseSecondaryWidget(root_view->GetWidget());
1576 return TRUE; 1576 return TRUE;
1577 } 1577 }
1578 } // namespace 1578 } // namespace
1579 1579
1580 void Window::CloseAllSecondaryWindows() { 1580 void Window::CloseAllSecondaryWindows() {
1581 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0); 1581 EnumThreadWindows(GetCurrentThreadId(), WindowCallbackProc, 0);
1582 } 1582 }
1583 1583
1584 } // namespace views 1584 } // namespace views
OLDNEW
« no previous file with comments | « views/window/window.cc ('k') | webkit/plugins/npapi/webplugin_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698