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

Side by Side Diff: ui/aura/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_WINDOW_DELEGATE_H_ 5 #ifndef UI_AURA_WINDOW_DELEGATE_H_
6 #define UI_AURA_WINDOW_DELEGATE_H_ 6 #define UI_AURA_WINDOW_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ui/aura/aura_export.h" 9 #include "ui/aura/aura_export.h"
10 #include "ui/base/events.h" 10 #include "ui/base/events.h"
(...skipping 19 matching lines...) Expand all
30 class AURA_EXPORT WindowDelegate { 30 class AURA_EXPORT WindowDelegate {
31 public: 31 public:
32 // Returns the window's minimum size, or size 0,0 if there is no limit. 32 // Returns the window's minimum size, or size 0,0 if there is no limit.
33 virtual gfx::Size GetMinimumSize() const = 0; 33 virtual gfx::Size GetMinimumSize() const = 0;
34 34
35 // Called when the Window's position and/or size changes. 35 // Called when the Window's position and/or size changes.
36 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, 36 virtual void OnBoundsChanged(const gfx::Rect& old_bounds,
37 const gfx::Rect& new_bounds) = 0; 37 const gfx::Rect& new_bounds) = 0;
38 38
39 // Sent to the Window's delegate when the Window gains or loses focus. 39 // Sent to the Window's delegate when the Window gains or loses focus.
40 virtual void OnFocus() = 0; 40 virtual void OnFocus(aura::Window* old_focused_window) = 0;
41 virtual void OnBlur() = 0; 41 virtual void OnBlur() = 0;
42 42
43 virtual bool OnKeyEvent(KeyEvent* event) = 0; 43 virtual bool OnKeyEvent(KeyEvent* event) = 0;
44 44
45 // Returns the native cursor for the specified point, in window coordinates, 45 // Returns the native cursor for the specified point, in window coordinates,
46 // or NULL for the default cursor. 46 // or NULL for the default cursor.
47 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) = 0; 47 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) = 0;
48 48
49 // Returns the non-client component (see hit_test.h) containing |point|, in 49 // Returns the non-client component (see hit_test.h) containing |point|, in
50 // window coordinates. 50 // window coordinates.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // above returns true. 101 // above returns true.
102 virtual void GetHitTestMask(gfx::Path* mask) const = 0; 102 virtual void GetHitTestMask(gfx::Path* mask) const = 0;
103 103
104 protected: 104 protected:
105 virtual ~WindowDelegate() {} 105 virtual ~WindowDelegate() {}
106 }; 106 };
107 107
108 } // namespace aura 108 } // namespace aura
109 109
110 #endif // UI_AURA_WINDOW_DELEGATE_H_ 110 #endif // UI_AURA_WINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698