OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 // Trivial WindowDelegate implementation that draws a colored background. | 32 // Trivial WindowDelegate implementation that draws a colored background. |
33 class DemoWindowDelegate : public aura::WindowDelegate { | 33 class DemoWindowDelegate : public aura::WindowDelegate { |
34 public: | 34 public: |
35 explicit DemoWindowDelegate(SkColor color) : color_(color) {} | 35 explicit DemoWindowDelegate(SkColor color) : color_(color) {} |
36 | 36 |
37 // Overridden from WindowDelegate: | 37 // Overridden from WindowDelegate: |
38 virtual gfx::Size GetMinimumSize() const OVERRIDE { | 38 virtual gfx::Size GetMinimumSize() const OVERRIDE { |
39 return gfx::Size(); | 39 return gfx::Size(); |
40 } | 40 } |
| 41 |
| 42 virtual gfx::Size GetMaximumSize() const OVERRIDE { |
| 43 return gfx::Size(); |
| 44 } |
| 45 |
41 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 46 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
42 const gfx::Rect& new_bounds) OVERRIDE {} | 47 const gfx::Rect& new_bounds) OVERRIDE {} |
43 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE {} | 48 virtual void OnFocus(aura::Window* old_focused_window) OVERRIDE {} |
44 virtual void OnBlur() OVERRIDE {} | 49 virtual void OnBlur() OVERRIDE {} |
45 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE { | 50 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE { |
46 return gfx::kNullCursor; | 51 return gfx::kNullCursor; |
47 } | 52 } |
48 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { | 53 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { |
49 return HTCAPTION; | 54 return HTCAPTION; |
50 } | 55 } |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 175 |
171 // The exit manager is in charge of calling the dtors of singleton objects. | 176 // The exit manager is in charge of calling the dtors of singleton objects. |
172 base::AtExitManager exit_manager; | 177 base::AtExitManager exit_manager; |
173 | 178 |
174 ui::RegisterPathProvider(); | 179 ui::RegisterPathProvider(); |
175 icu_util::Initialize(); | 180 icu_util::Initialize(); |
176 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL); | 181 ResourceBundle::InitSharedInstanceWithLocale("en-US", NULL); |
177 | 182 |
178 return DemoMain(); | 183 return DemoMain(); |
179 } | 184 } |
OLD | NEW |