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

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

Issue 12342028: make menus, bubbles, etc. top level windows on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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) 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/stringprintf.h" 7 #include "base/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 23 matching lines...) Expand all
34 } 34 }
35 35
36 gfx::Size TestWindowDelegate::GetMinimumSize() const { 36 gfx::Size TestWindowDelegate::GetMinimumSize() const {
37 return minimum_size_; 37 return minimum_size_;
38 } 38 }
39 39
40 gfx::Size TestWindowDelegate::GetMaximumSize() const { 40 gfx::Size TestWindowDelegate::GetMaximumSize() const {
41 return maximum_size_; 41 return maximum_size_;
42 } 42 }
43 43
44 void TestWindowDelegate::SetHostTransitionBounds(const gfx::Rect& bounds) {
45 }
46
44 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, 47 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds,
45 const gfx::Rect& new_bounds) { 48 const gfx::Rect& new_bounds) {
46 } 49 }
47 50
48 gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) { 51 gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) {
49 return gfx::kNullCursor; 52 return gfx::kNullCursor;
50 } 53 }
51 54
52 int TestWindowDelegate::GetNonClientComponent(const gfx::Point& point) const { 55 int TestWindowDelegate::GetNonClientComponent(const gfx::Point& point) const {
53 return window_component_; 56 return window_component_;
(...skipping 12 matching lines...) Expand all
66 void TestWindowDelegate::OnCaptureLost() { 69 void TestWindowDelegate::OnCaptureLost() {
67 } 70 }
68 71
69 void TestWindowDelegate::OnPaint(gfx::Canvas* canvas) { 72 void TestWindowDelegate::OnPaint(gfx::Canvas* canvas) {
70 } 73 }
71 74
72 void TestWindowDelegate::OnDeviceScaleFactorChanged( 75 void TestWindowDelegate::OnDeviceScaleFactorChanged(
73 float device_scale_factor) { 76 float device_scale_factor) {
74 } 77 }
75 78
79 void TestWindowDelegate::OnWindowHidingAnimationCompleted() {
80 }
81
76 void TestWindowDelegate::OnWindowDestroying() { 82 void TestWindowDelegate::OnWindowDestroying() {
77 } 83 }
78 84
79 void TestWindowDelegate::OnWindowDestroyed() { 85 void TestWindowDelegate::OnWindowDestroyed() {
80 if (delete_on_destroyed_) 86 if (delete_on_destroyed_)
81 delete this; 87 delete this;
82 } 88 }
83 89
84 void TestWindowDelegate::OnWindowTargetVisibilityChanged(bool visible) { 90 void TestWindowDelegate::OnWindowTargetVisibilityChanged(bool visible) {
85 } 91 }
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 std::string result = StringPrintf("%d %d", 212 std::string result = StringPrintf("%d %d",
207 key_press_count_, 213 key_press_count_,
208 key_release_count_); 214 key_release_count_);
209 key_press_count_ = 0; 215 key_press_count_ = 0;
210 key_release_count_ = 0; 216 key_release_count_ = 0;
211 return result; 217 return result;
212 } 218 }
213 219
214 } // namespace test 220 } // namespace test
215 } // namespace aura 221 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698