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

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: first patch ready for review 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 82 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 93 // 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 94 // 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. 95 // returns true, GetHitTestMask below will be called to get the mask.
96 // Otherwise, Window will hit-test against its bounds. 96 // Otherwise, Window will hit-test against its bounds.
97 virtual bool HasHitTestMask() const = 0; 97 virtual bool HasHitTestMask() const = 0;
98 98
99 // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask 99 // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask
100 // above returns true. 100 // above returns true.
101 virtual void GetHitTestMask(gfx::Path* mask) const = 0; 101 virtual void GetHitTestMask(gfx::Path* mask) const = 0;
102 102
103 virtual void OnLinkDisambiguationPopupRequested(
104 const gfx::Rect& target_rect,
105 const SkBitmap& zoomed_bitmap) = 0;
106
cpu_(ooo_6.6-7.5) 2014/07/20 01:50:44 are we missing the fwd declaration of SkBitmap her
luken 2014/07/21 18:01:29 Done.
103 protected: 107 protected:
104 virtual ~WindowDelegate() {} 108 virtual ~WindowDelegate() {}
105 }; 109 };
106 110
107 } // namespace aura 111 } // namespace aura
108 112
109 #endif // UI_AURA_WINDOW_DELEGATE_H_ 113 #endif // UI_AURA_WINDOW_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698