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

Side by Side Diff: views/aura_desktop/aura_desktop_main.cc

Issue 8202026: views: Some more layer change, and add/update some tests for layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 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 "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 "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void OnActivated() OVERRIDE {} 55 virtual void OnActivated() OVERRIDE {}
56 virtual void OnLostActive() OVERRIDE {} 56 virtual void OnLostActive() OVERRIDE {}
57 virtual void OnCaptureLost() OVERRIDE {} 57 virtual void OnCaptureLost() OVERRIDE {}
58 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE { 58 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
59 canvas->GetSkCanvas()->drawColor(color_, SkXfermode::kSrc_Mode); 59 canvas->GetSkCanvas()->drawColor(color_, SkXfermode::kSrc_Mode);
60 } 60 }
61 virtual void OnWindowDestroying() OVERRIDE { 61 virtual void OnWindowDestroying() OVERRIDE {
62 } 62 }
63 virtual void OnWindowDestroyed() OVERRIDE { 63 virtual void OnWindowDestroyed() OVERRIDE {
64 } 64 }
65 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE {
66 }
65 67
66 private: 68 private:
67 SkColor color_; 69 SkColor color_;
68 70
69 DISALLOW_COPY_AND_ASSIGN(DemoWindowDelegate); 71 DISALLOW_COPY_AND_ASSIGN(DemoWindowDelegate);
70 }; 72 };
71 73
72 class TestView : public views::View { 74 class TestView : public views::View {
73 public: 75 public:
74 TestView() : color_shifting_(false), color_(SK_ColorYELLOW) {} 76 TestView() : color_shifting_(false), color_(SK_ColorYELLOW) {}
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 contents, window2, gfx::Rect(120, 150, 200, 200)); 179 contents, window2, gfx::Rect(120, 150, 200, 200));
178 views_window->Show(); 180 views_window->Show();
179 181
180 aura::Desktop::GetInstance()->Run(); 182 aura::Desktop::GetInstance()->Run();
181 183
182 delete aura::Desktop::GetInstance(); 184 delete aura::Desktop::GetInstance();
183 185
184 return 0; 186 return 0;
185 } 187 }
186 188
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698