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

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

Issue 7886042: Move Aura to UI subdir. (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
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 "aura/desktop.h"
6 #include "aura/event.h"
7 #include "aura/window.h"
8 #include "aura/window_delegate.h"
9 #include "base/at_exit.h" 5 #include "base/at_exit.h"
10 #include "base/command_line.h" 6 #include "base/command_line.h"
11 #include "base/i18n/icu_util.h" 7 #include "base/i18n/icu_util.h"
12 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
13 #include "base/message_loop.h" 9 #include "base/message_loop.h"
14 #include "third_party/skia/include/core/SkXfermode.h" 10 #include "third_party/skia/include/core/SkXfermode.h"
11 #include "ui/aura/desktop.h"
12 #include "ui/aura/event.h"
13 #include "ui/aura/window.h"
14 #include "ui/aura/window_delegate.h"
15 #include "ui/base/resource/resource_bundle.h" 15 #include "ui/base/resource/resource_bundle.h"
16 #include "ui/base/ui_base_paths.h" 16 #include "ui/base/ui_base_paths.h"
17 #include "ui/gfx/canvas_skia.h" 17 #include "ui/gfx/canvas_skia.h"
18 #include "ui/gfx/rect.h" 18 #include "ui/gfx/rect.h"
19 19
20 #if defined(USE_X11) 20 #if defined(USE_X11)
21 #include "aura/hit_test.h"
22 #include "base/message_pump_x.h" 21 #include "base/message_pump_x.h"
22 #include "ui/aura/hit_test.h"
23 #endif 23 #endif
24 24
25 namespace { 25 namespace {
26 26
27 // Trivial WindowDelegate implementation that draws a colored background. 27 // Trivial WindowDelegate implementation that draws a colored background.
28 class DemoWindowDelegate : public aura::WindowDelegate { 28 class DemoWindowDelegate : public aura::WindowDelegate {
29 public: 29 public:
30 explicit DemoWindowDelegate(SkColor color) : color_(color) {} 30 explicit DemoWindowDelegate(SkColor color) : color_(color) {}
31 31
32 virtual void OnFocus() OVERRIDE {} 32 virtual void OnFocus() OVERRIDE {}
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 window3.set_id(3); 100 window3.set_id(3);
101 window3.Init(); 101 window3.Init();
102 window3.SetBounds(gfx::Rect(10, 10, 50, 50), 0); 102 window3.SetBounds(gfx::Rect(10, 10, 50, 50), 0);
103 window3.SetVisibility(aura::Window::VISIBILITY_SHOWN); 103 window3.SetVisibility(aura::Window::VISIBILITY_SHOWN);
104 window3.SetParent(&window2); 104 window3.SetParent(&window2);
105 105
106 aura::Desktop::GetInstance()->Run(); 106 aura::Desktop::GetInstance()->Run();
107 return 0; 107 return 0;
108 } 108 }
109 109
OLDNEW
« ui/aura/aura.gyp ('K') | « ui/aura/aura_export.h ('k') | ui/aura/desktop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698