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

Side by Side Diff: ui/aura/window_delegate.h

Issue 351683002: Adds link disambiguation popup support to Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: responding to cpu's feedback Created 6 years, 5 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
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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "ui/aura/aura_export.h" 10 #include "ui/aura/aura_export.h"
(...skipping 11 matching lines...) Expand all
22 22
23 namespace ui { 23 namespace ui {
24 class GestureEvent; 24 class GestureEvent;
25 class KeyEvent; 25 class KeyEvent;
26 class Layer; 26 class Layer;
27 class MouseEvent; 27 class MouseEvent;
28 class Texture; 28 class Texture;
29 class TouchEvent; 29 class TouchEvent;
30 } 30 }
31 31
32 class SkBitmap;
33
32 namespace aura { 34 namespace aura {
33 35
34 // Delegate interface for aura::Window. 36 // Delegate interface for aura::Window.
35 class AURA_EXPORT WindowDelegate : public ui::EventHandler { 37 class AURA_EXPORT WindowDelegate : public ui::EventHandler {
36 public: 38 public:
37 // Returns the window's minimum size, or size 0,0 if there is no limit. 39 // Returns the window's minimum size, or size 0,0 if there is no limit.
38 virtual gfx::Size GetMinimumSize() const = 0; 40 virtual gfx::Size GetMinimumSize() const = 0;
39 41
40 // Returns the window's maximum size, or size 0,0 if there is no limit. 42 // Returns the window's maximum size, or size 0,0 if there is no limit.
41 virtual gfx::Size GetMaximumSize() const = 0; 43 virtual gfx::Size GetMaximumSize() const = 0;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // Called from Window::HitTest to check if the window has a custom hit test 95 // Called from Window::HitTest to check if the window has a custom hit test
94 // mask. It works similar to the views counterparts. That is, if the function 96 // mask. It works similar to the views counterparts. That is, if the function
95 // returns true, GetHitTestMask below will be called to get the mask. 97 // returns true, GetHitTestMask below will be called to get the mask.
96 // Otherwise, Window will hit-test against its bounds. 98 // Otherwise, Window will hit-test against its bounds.
97 virtual bool HasHitTestMask() const = 0; 99 virtual bool HasHitTestMask() const = 0;
98 100
99 // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask 101 // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask
100 // above returns true. 102 // above returns true.
101 virtual void GetHitTestMask(gfx::Path* mask) const = 0; 103 virtual void GetHitTestMask(gfx::Path* mask) const = 0;
102 104
105 virtual void OnLinkDisambiguationPopupRequested(
jam 2014/07/22 01:04:26 nit: every method in this class is documented...
sky 2014/07/22 04:17:23 You should not need to change WindowDelegate to ac
luken 2014/07/30 19:17:31 Done.
luken 2014/07/30 19:17:31 This code is deprecated.
106 const gfx::Rect& target_rect,
107 const SkBitmap& zoomed_bitmap) = 0;
108
103 protected: 109 protected:
104 virtual ~WindowDelegate() {} 110 virtual ~WindowDelegate() {}
105 }; 111 };
106 112
107 } // namespace aura 113 } // namespace aura
108 114
109 #endif // UI_AURA_WINDOW_DELEGATE_H_ 115 #endif // UI_AURA_WINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698