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

Side by Side Diff: chrome/browser/chrome_browser_main_extra_parts_views.cc

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real 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 | « chrome/browser/bookmarks/bookmark_utils.cc ('k') | chrome/browser/chrome_browser_main_win.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) 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 "chrome/browser/chrome_browser_main_extra_parts_views.h" 5 #include "chrome/browser/chrome_browser_main_extra_parts_views.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "chrome/browser/ui/views/chrome_views_delegate.h" 10 #include "chrome/browser/ui/views/chrome_views_delegate.h"
11 #include "chrome/common/chrome_switches.h" 11 #include "chrome/common/chrome_switches.h"
12 #include "views/widget/widget.h" 12 #include "ui/views/widget/widget.h"
13 13
14 ChromeBrowserMainExtraPartsViews::ChromeBrowserMainExtraPartsViews() 14 ChromeBrowserMainExtraPartsViews::ChromeBrowserMainExtraPartsViews()
15 : ChromeBrowserMainExtraParts() { 15 : ChromeBrowserMainExtraParts() {
16 } 16 }
17 17
18 void ChromeBrowserMainExtraPartsViews::ToolkitInitialized() { 18 void ChromeBrowserMainExtraPartsViews::ToolkitInitialized() {
19 // The delegate needs to be set before any UI is created so that windows 19 // The delegate needs to be set before any UI is created so that windows
20 // display the correct icon. 20 // display the correct icon.
21 if (!views::ViewsDelegate::views_delegate) 21 if (!views::ViewsDelegate::views_delegate)
22 views::ViewsDelegate::views_delegate = new ChromeViewsDelegate; 22 views::ViewsDelegate::views_delegate = new ChromeViewsDelegate;
23 23
24 // TODO(beng): Move to WidgetImpl and implement on Windows too! 24 // TODO(beng): Move to WidgetImpl and implement on Windows too!
25 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDebugViewsPaint)) 25 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDebugViewsPaint))
26 views::Widget::SetDebugPaintEnabled(true); 26 views::Widget::SetDebugPaintEnabled(true);
27 } 27 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.cc ('k') | chrome/browser/chrome_browser_main_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698