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

Side by Side Diff: ui/aura/test/test_window_delegate.cc

Issue 23444051: Move the content-dependent RecreateLayer logic from aura::Window to RWHVA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better comments Created 7 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
« no previous file with comments | « ui/aura/test/test_window_delegate.h ('k') | ui/aura/window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "ui/aura/test/test_window_delegate.h" 5 #include "ui/aura/test/test_window_delegate.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/base/events/event.h" 9 #include "ui/base/events/event.h"
10 #include "ui/base/hit_test.h" 10 #include "ui/base/hit_test.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void TestWindowDelegate::OnWindowTargetVisibilityChanged(bool visible) { 85 void TestWindowDelegate::OnWindowTargetVisibilityChanged(bool visible) {
86 } 86 }
87 87
88 bool TestWindowDelegate::HasHitTestMask() const { 88 bool TestWindowDelegate::HasHitTestMask() const {
89 return false; 89 return false;
90 } 90 }
91 91
92 void TestWindowDelegate::GetHitTestMask(gfx::Path* mask) const { 92 void TestWindowDelegate::GetHitTestMask(gfx::Path* mask) const {
93 } 93 }
94 94
95 scoped_refptr<ui::Texture> TestWindowDelegate::CopyTexture() { 95 void TestWindowDelegate::DidRecreateLayer(ui::Layer *old_layer,
96 return scoped_refptr<ui::Texture>(); 96 ui::Layer *new_layer) {
97 } 97 }
98 98
99 //////////////////////////////////////////////////////////////////////////////// 99 ////////////////////////////////////////////////////////////////////////////////
100 // ColorTestWindowDelegate 100 // ColorTestWindowDelegate
101 101
102 ColorTestWindowDelegate::ColorTestWindowDelegate(SkColor color) 102 ColorTestWindowDelegate::ColorTestWindowDelegate(SkColor color)
103 : color_(color), 103 : color_(color),
104 last_key_code_(ui::VKEY_UNKNOWN) { 104 last_key_code_(ui::VKEY_UNKNOWN) {
105 } 105 }
106 106
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 std::string result = base::StringPrintf("%d %d", 207 std::string result = base::StringPrintf("%d %d",
208 key_press_count_, 208 key_press_count_,
209 key_release_count_); 209 key_release_count_);
210 key_press_count_ = 0; 210 key_press_count_ = 0;
211 key_release_count_ = 0; 211 key_release_count_ = 0;
212 return result; 212 return result;
213 } 213 }
214 214
215 } // namespace test 215 } // namespace test
216 } // namespace aura 216 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/test/test_window_delegate.h ('k') | ui/aura/window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698