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

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

Issue 8770011: aura: Ask the WindowDelegate before a Window is Focus()ed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years 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) 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 "ui/aura/test/test_window_delegate.h" 5 #include "ui/aura/test/test_window_delegate.h"
6 6
7 #include "third_party/skia/include/core/SkCanvas.h" 7 #include "third_party/skia/include/core/SkCanvas.h"
8 #include "ui/aura/event.h" 8 #include "ui/aura/event.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 #include "ui/base/hit_test.h" 10 #include "ui/base/hit_test.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 50
51 bool TestWindowDelegate::OnMouseEvent(MouseEvent* event) { 51 bool TestWindowDelegate::OnMouseEvent(MouseEvent* event) {
52 return false; 52 return false;
53 } 53 }
54 54
55 ui::TouchStatus TestWindowDelegate::OnTouchEvent(TouchEvent* event) { 55 ui::TouchStatus TestWindowDelegate::OnTouchEvent(TouchEvent* event) {
56 return ui::TOUCH_STATUS_UNKNOWN; 56 return ui::TOUCH_STATUS_UNKNOWN;
57 } 57 }
58 58
59 bool TestWindowDelegate::CanFocus() {
60 return true;
61 }
62
59 bool TestWindowDelegate::ShouldActivate(Event* event) { 63 bool TestWindowDelegate::ShouldActivate(Event* event) {
60 return true; 64 return true;
61 } 65 }
62 66
63 void TestWindowDelegate::OnActivated() { 67 void TestWindowDelegate::OnActivated() {
64 } 68 }
65 69
66 void TestWindowDelegate::OnLostActive() { 70 void TestWindowDelegate::OnLostActive() {
67 } 71 }
68 72
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 130 }
127 void ActivateWindowDelegate::OnActivated() { 131 void ActivateWindowDelegate::OnActivated() {
128 activated_count_++; 132 activated_count_++;
129 } 133 }
130 void ActivateWindowDelegate::OnLostActive() { 134 void ActivateWindowDelegate::OnLostActive() {
131 lost_active_count_++; 135 lost_active_count_++;
132 } 136 }
133 137
134 } // namespace test 138 } // namespace test
135 } // namespace aura 139 } // 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