OLD | NEW |
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 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 | 40 |
41 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { | 41 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { |
42 return HTCAPTION; | 42 return HTCAPTION; |
43 } | 43 } |
44 | 44 |
45 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE { | 45 virtual bool OnMouseEvent(aura::MouseEvent* event) OVERRIDE { |
46 return true; | 46 return true; |
47 } | 47 } |
48 | 48 |
| 49 virtual void OnCaptureLost() OVERRIDE { |
| 50 } |
| 51 |
49 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE { | 52 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE { |
50 canvas->AsCanvasSkia()->drawColor(color_, SkXfermode::kSrc_Mode); | 53 canvas->AsCanvasSkia()->drawColor(color_, SkXfermode::kSrc_Mode); |
51 } | 54 } |
52 | 55 |
53 virtual void OnWindowDestroying() OVERRIDE {} | 56 virtual void OnWindowDestroying() OVERRIDE {} |
54 virtual void OnWindowDestroyed() OVERRIDE {} | 57 virtual void OnWindowDestroyed() OVERRIDE {} |
55 | 58 |
56 private: | 59 private: |
57 SkColor color_; | 60 SkColor color_; |
58 | 61 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 window3.set_id(3); | 106 window3.set_id(3); |
104 window3.Init(); | 107 window3.Init(); |
105 window3.SetBounds(gfx::Rect(10, 10, 50, 50), 0); | 108 window3.SetBounds(gfx::Rect(10, 10, 50, 50), 0); |
106 window3.SetVisibility(aura::Window::VISIBILITY_SHOWN); | 109 window3.SetVisibility(aura::Window::VISIBILITY_SHOWN); |
107 window3.SetParent(&window2); | 110 window3.SetParent(&window2); |
108 | 111 |
109 aura::Desktop::GetInstance()->Run(); | 112 aura::Desktop::GetInstance()->Run(); |
110 return 0; | 113 return 0; |
111 } | 114 } |
112 | 115 |
OLD | NEW |