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

Side by Side Diff: ui/android/view_android.h

Issue 2878403002: Support setting mouse cursor icon in Android N. (Closed)
Patch Set: Support setting mouse cursor icon in Android N Created 3 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ANDROID_VIEW_ANDROID_H_ 5 #ifndef UI_ANDROID_VIEW_ANDROID_H_
6 #define UI_ANDROID_VIEW_ANDROID_H_ 6 #define UI_ANDROID_VIEW_ANDROID_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
11 #include "base/android/jni_weak_ref.h" 11 #include "base/android/jni_weak_ref.h"
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "ui/android/ui_android_export.h" 14 #include "ui/android/ui_android_export.h"
15 #include "ui/gfx/geometry/rect_f.h" 15 #include "ui/gfx/geometry/rect_f.h"
16 16
17 class SkBitmap;
18
17 namespace cc { 19 namespace cc {
18 class Layer; 20 class Layer;
19 } 21 }
20 22
23 namespace gfx {
24 class Point;
25 }
26
21 namespace ui { 27 namespace ui {
22 class DragEventAndroid; 28 class DragEventAndroid;
23 class EventForwarder; 29 class EventForwarder;
24 class MotionEventAndroid; 30 class MotionEventAndroid;
25 class ViewClient; 31 class ViewClient;
26 class WindowAndroid; 32 class WindowAndroid;
27 33
28 // View-related parameters from frame updates. 34 // View-related parameters from frame updates.
29 struct FrameInfo { 35 struct FrameInfo {
30 gfx::SizeF viewport_size; // In CSS pixels. 36 gfx::SizeF viewport_size; // In CSS pixels.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 void RemoveFromParent(); 142 void RemoveFromParent();
137 143
138 // Sets the layout relative to parent. Used to do hit testing against events. 144 // Sets the layout relative to parent. Used to do hit testing against events.
139 void SetLayout(LayoutParams params); 145 void SetLayout(LayoutParams params);
140 146
141 bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext, 147 bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext,
142 const base::android::JavaRef<jobject>& jimage); 148 const base::android::JavaRef<jobject>& jimage);
143 149
144 gfx::Size GetPhysicalBackingSize(); 150 gfx::Size GetPhysicalBackingSize();
145 void OnPhysicalBackingSizeChanged(const gfx::Size& size); 151 void OnPhysicalBackingSizeChanged(const gfx::Size& size);
152 void OnCursorChanged(int type,
153 const SkBitmap& custom_image,
154 const gfx::Point& hotspot);
146 void OnBackgroundColorChanged(unsigned int color); 155 void OnBackgroundColorChanged(unsigned int color);
147 void OnTopControlsChanged(float top_controls_offset, 156 void OnTopControlsChanged(float top_controls_offset,
148 float top_content_offset); 157 float top_content_offset);
149 void OnBottomControlsChanged(float bottom_controls_offset, 158 void OnBottomControlsChanged(float bottom_controls_offset,
150 float bottom_content_offset); 159 float bottom_content_offset);
151 int GetSystemWindowInsetBottom(); 160 int GetSystemWindowInsetBottom();
152 161
153 ScopedAnchorView AcquireAnchorView(); 162 ScopedAnchorView AcquireAnchorView();
154 void SetAnchorRect(const base::android::JavaRef<jobject>& anchor, 163 void SetAnchorRect(const base::android::JavaRef<jobject>& anchor,
155 const gfx::RectF& bounds); 164 const gfx::RectF& bounds);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 FrameInfo frame_info_; 239 FrameInfo frame_info_;
231 240
232 std::unique_ptr<EventForwarder> event_forwarder_; 241 std::unique_ptr<EventForwarder> event_forwarder_;
233 242
234 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); 243 DISALLOW_COPY_AND_ASSIGN(ViewAndroid);
235 }; 244 };
236 245
237 } // namespace ui 246 } // namespace ui
238 247
239 #endif // UI_ANDROID_VIEW_ANDROID_H_ 248 #endif // UI_ANDROID_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698