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

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

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 #ifndef UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ 5 #ifndef UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_
6 #define UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ 6 #define UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "third_party/skia/include/core/SkColor.h" 10 #include "third_party/skia/include/core/SkColor.h"
(...skipping 10 matching lines...) Expand all
21 virtual ~TestWindowDelegate(); 21 virtual ~TestWindowDelegate();
22 22
23 void set_window_component(int window_component) { 23 void set_window_component(int window_component) {
24 window_component_ = window_component; 24 window_component_ = window_component;
25 } 25 }
26 26
27 // Overridden from WindowDelegate: 27 // Overridden from WindowDelegate:
28 virtual gfx::Size GetMinimumSize() const OVERRIDE; 28 virtual gfx::Size GetMinimumSize() const OVERRIDE;
29 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 29 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
30 const gfx::Rect& new_bounds) OVERRIDE; 30 const gfx::Rect& new_bounds) OVERRIDE;
31 virtual void OnFocus() OVERRIDE; 31 virtual void OnFocus(Window* old_focused_window) OVERRIDE;
32 virtual void OnBlur() OVERRIDE; 32 virtual void OnBlur() OVERRIDE;
33 virtual bool OnKeyEvent(KeyEvent* event) OVERRIDE; 33 virtual bool OnKeyEvent(KeyEvent* event) OVERRIDE;
34 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE; 34 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE;
35 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE; 35 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE;
36 virtual bool ShouldDescendIntoChildForEventHandling( 36 virtual bool ShouldDescendIntoChildForEventHandling(
37 Window* child, 37 Window* child,
38 const gfx::Point& location) OVERRIDE; 38 const gfx::Point& location) OVERRIDE;
39 virtual bool OnMouseEvent(MouseEvent* event) OVERRIDE; 39 virtual bool OnMouseEvent(MouseEvent* event) OVERRIDE;
40 virtual ui::TouchStatus OnTouchEvent(TouchEvent* event) OVERRIDE; 40 virtual ui::TouchStatus OnTouchEvent(TouchEvent* event) OVERRIDE;
41 virtual ui::GestureStatus OnGestureEvent(GestureEvent* event) OVERRIDE; 41 virtual ui::GestureStatus OnGestureEvent(GestureEvent* event) OVERRIDE;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 private: 88 private:
89 gfx::Rect mask_rect_; 89 gfx::Rect mask_rect_;
90 90
91 DISALLOW_COPY_AND_ASSIGN(MaskedWindowDelegate); 91 DISALLOW_COPY_AND_ASSIGN(MaskedWindowDelegate);
92 }; 92 };
93 93
94 } // namespace test 94 } // namespace test
95 } // namespace aura 95 } // namespace aura
96 96
97 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_ 97 #endif // UI_AURA_TEST_TEST_WINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698