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

Side by Side Diff: ui/aura/demo/demo_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
« no previous file with comments | « no previous file | ui/aura/test_window_delegate.h » ('j') | views/controls/native_control_gtk.cc » ('J')
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 virtual bool ShouldActivate(aura::MouseEvent* event) OVERRIDE { return true; } 49 virtual bool ShouldActivate(aura::MouseEvent* event) OVERRIDE { return true; }
50 virtual void OnActivated() OVERRIDE {} 50 virtual void OnActivated() OVERRIDE {}
51 virtual void OnLostActive() OVERRIDE {} 51 virtual void OnLostActive() OVERRIDE {}
52 virtual void OnCaptureLost() OVERRIDE {} 52 virtual void OnCaptureLost() OVERRIDE {}
53 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE { 53 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE {
54 canvas->GetSkCanvas()->drawColor(color_, SkXfermode::kSrc_Mode); 54 canvas->GetSkCanvas()->drawColor(color_, SkXfermode::kSrc_Mode);
55 } 55 }
56 virtual void OnWindowDestroying() OVERRIDE {} 56 virtual void OnWindowDestroying() OVERRIDE {}
57 virtual void OnWindowDestroyed() OVERRIDE {} 57 virtual void OnWindowDestroyed() OVERRIDE {}
58 virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE {}
58 59
59 private: 60 private:
60 SkColor color_; 61 SkColor color_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(DemoWindowDelegate); 63 DISALLOW_COPY_AND_ASSIGN(DemoWindowDelegate);
63 }; 64 };
64 65
65 66
66 } // namespace 67 } // namespace
67 68
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 window3.set_id(3); 103 window3.set_id(3);
103 window3.Init(); 104 window3.Init();
104 window3.SetBounds(gfx::Rect(10, 10, 50, 50)); 105 window3.SetBounds(gfx::Rect(10, 10, 50, 50));
105 window3.Show(); 106 window3.Show();
106 window3.SetParent(&window2); 107 window3.SetParent(&window2);
107 108
108 aura::Desktop::GetInstance()->Run(); 109 aura::Desktop::GetInstance()->Run();
109 return 0; 110 return 0;
110 } 111 }
111 112
OLDNEW
« no previous file with comments | « no previous file | ui/aura/test_window_delegate.h » ('j') | views/controls/native_control_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698