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

Side by Side Diff: ui/aura/demo/demo_main.cc

Issue 7977025: aura: Make 'ui' buildable without gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 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/browser/ui/gtk/tabs/tab_renderer_gtk.cc ('k') | ui/base/clipboard/clipboard.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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/i18n/icu_util.h" 7 #include "base/i18n/icu_util.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "third_party/skia/include/core/SkXfermode.h" 10 #include "third_party/skia/include/core/SkXfermode.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 int main(int argc, char** argv) { 65 int main(int argc, char** argv) {
66 CommandLine::Init(argc, argv); 66 CommandLine::Init(argc, argv);
67 67
68 // The exit manager is in charge of calling the dtors of singleton objects. 68 // The exit manager is in charge of calling the dtors of singleton objects.
69 base::AtExitManager exit_manager; 69 base::AtExitManager exit_manager;
70 70
71 ui::RegisterPathProvider(); 71 ui::RegisterPathProvider();
72 icu_util::Initialize(); 72 icu_util::Initialize();
73 ResourceBundle::InitSharedInstance("en-US"); 73 ResourceBundle::InitSharedInstance("en-US");
74 74
75 #if defined(USE_X11) 75 #if defined(TOOLKIT_USES_GTK)
76 base::MessagePumpX::DisableGtkMessagePump(); 76 base::MessagePumpX::DisableGtkMessagePump();
77 #endif 77 #endif
78 78
79 // Create the message-loop here before creating the desktop. 79 // Create the message-loop here before creating the desktop.
80 MessageLoop message_loop(MessageLoop::TYPE_UI); 80 MessageLoop message_loop(MessageLoop::TYPE_UI);
81 81
82 aura::Desktop::GetInstance(); 82 aura::Desktop::GetInstance();
83 83
84 // Create a hierarchy of test windows. 84 // Create a hierarchy of test windows.
85 DemoWindowDelegate window_delegate1(SK_ColorBLUE); 85 DemoWindowDelegate window_delegate1(SK_ColorBLUE);
(...skipping 17 matching lines...) Expand all
103 window3.set_id(3); 103 window3.set_id(3);
104 window3.Init(); 104 window3.Init();
105 window3.SetBounds(gfx::Rect(10, 10, 50, 50), 0); 105 window3.SetBounds(gfx::Rect(10, 10, 50, 50), 0);
106 window3.SetVisibility(aura::Window::VISIBILITY_SHOWN); 106 window3.SetVisibility(aura::Window::VISIBILITY_SHOWN);
107 window3.SetParent(&window2); 107 window3.SetParent(&window2);
108 108
109 aura::Desktop::GetInstance()->Run(); 109 aura::Desktop::GetInstance()->Run();
110 return 0; 110 return 0;
111 } 111 }
112 112
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/tabs/tab_renderer_gtk.cc ('k') | ui/base/clipboard/clipboard.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698