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

Side by Side Diff: views/desktop/desktop_main.cc

Issue 7206055: Add an option to run Chrome in the views desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | « chrome/common/chrome_switches.cc ('k') | views/desktop/desktop_window.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 "app/app_paths.h" 5 #include "app/app_paths.h"
6 #include "base/at_exit.h" 6 #include "base/at_exit.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/i18n/icu_util.h" 8 #include "base/i18n/icu_util.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 ResourceBundle::InitSharedInstance("en-US"); 43 ResourceBundle::InitSharedInstance("en-US");
44 44
45 MessageLoop main_message_loop(MessageLoop::TYPE_UI); 45 MessageLoop main_message_loop(MessageLoop::TYPE_UI);
46 46
47 views::desktop::DesktopViewsDelegate views_delegate; 47 views::desktop::DesktopViewsDelegate views_delegate;
48 48
49 // Desktop mode only supports a pure-views configuration. 49 // Desktop mode only supports a pure-views configuration.
50 views::Widget::SetPureViews(true); 50 views::Widget::SetPureViews(true);
51 51
52 views::desktop::DesktopWindow::CreateDesktopWindow(); 52 views::desktop::DesktopWindow::CreateDesktopWindow();
53 views::desktop::DesktopWindow::desktop_window->CreateTestWindow(
54 L"Sample Window 1", SK_ColorWHITE, gfx::Rect(500, 200, 400, 400), true);
55 views::desktop::DesktopWindow::desktop_window->CreateTestWindow(
56 L"Sample Window 2", SK_ColorRED, gfx::Rect(600, 450, 450, 300), false);
53 57
54 views::AcceleratorHandler accelerator_handler; 58 views::AcceleratorHandler accelerator_handler;
55 MessageLoopForUI::current()->Run(&accelerator_handler); 59 MessageLoopForUI::current()->Run(&accelerator_handler);
56 60
57 #if defined(OS_WIN) 61 #if defined(OS_WIN)
58 OleUninitialize(); 62 OleUninitialize();
59 #endif 63 #endif
60 return 0; 64 return 0;
61 } 65 }
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | views/desktop/desktop_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698