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

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

Issue 10562025: aura: Fix WidgetFocusChangeListener::OnNativeFocusChange(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge again Created 8 years, 6 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 "ui/aura/event.h" 7 #include "ui/aura/event.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/base/hit_test.h" 9 #include "ui/base/hit_test.h"
10 #include "ui/gfx/canvas.h" 10 #include "ui/gfx/canvas.h"
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 gfx::Size TestWindowDelegate::GetMinimumSize() const { 26 gfx::Size TestWindowDelegate::GetMinimumSize() const {
27 return gfx::Size(); 27 return gfx::Size();
28 } 28 }
29 29
30 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds, 30 void TestWindowDelegate::OnBoundsChanged(const gfx::Rect& old_bounds,
31 const gfx::Rect& new_bounds) { 31 const gfx::Rect& new_bounds) {
32 } 32 }
33 33
34 void TestWindowDelegate::OnFocus() { 34 void TestWindowDelegate::OnFocus(Window* old_focused_window) {
35 } 35 }
36 36
37 void TestWindowDelegate::OnBlur() { 37 void TestWindowDelegate::OnBlur() {
38 } 38 }
39 39
40 bool TestWindowDelegate::OnKeyEvent(KeyEvent* event) { 40 bool TestWindowDelegate::OnKeyEvent(KeyEvent* event) {
41 return false; 41 return false;
42 } 42 }
43 43
44 gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) { 44 gfx::NativeCursor TestWindowDelegate::GetCursor(const gfx::Point& point) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 bool MaskedWindowDelegate::HasHitTestMask() const { 128 bool MaskedWindowDelegate::HasHitTestMask() const {
129 return true; 129 return true;
130 } 130 }
131 131
132 void MaskedWindowDelegate::GetHitTestMask(gfx::Path* mask) const { 132 void MaskedWindowDelegate::GetHitTestMask(gfx::Path* mask) const {
133 mask->addRect(RectToSkRect(mask_rect_)); 133 mask->addRect(RectToSkRect(mask_rect_));
134 } 134 }
135 135
136 } // namespace test 136 } // namespace test
137 } // namespace aura 137 } // namespace aura
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698