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

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

Issue 2804953003: Refactor ContentViewClient (6/6) (Closed)
Patch Set: Created 3 years, 8 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_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext, 135 bool StartDragAndDrop(const base::android::JavaRef<jstring>& jtext,
136 const base::android::JavaRef<jobject>& jimage); 136 const base::android::JavaRef<jobject>& jimage);
137 137
138 void OnBackgroundColorChanged(unsigned int color); 138 void OnBackgroundColorChanged(unsigned int color);
139 void OnTopControlsChanged(float top_controls_offset, 139 void OnTopControlsChanged(float top_controls_offset,
140 float top_content_offset); 140 float top_content_offset);
141 void OnBottomControlsChanged(float bottom_controls_offset, 141 void OnBottomControlsChanged(float bottom_controls_offset,
142 float bottom_content_offset); 142 float bottom_content_offset);
143 void StartContentIntent(const GURL& content_url, bool is_main_frame); 143 void StartContentIntent(const GURL& content_url, bool is_main_frame);
144 int GetSystemWindowInsetBottom();
144 145
145 ScopedAnchorView AcquireAnchorView(); 146 ScopedAnchorView AcquireAnchorView();
146 void SetAnchorRect(const base::android::JavaRef<jobject>& anchor, 147 void SetAnchorRect(const base::android::JavaRef<jobject>& anchor,
147 const gfx::RectF& bounds); 148 const gfx::RectF& bounds);
148 149
149 // This may return null. 150 // This may return null.
150 base::android::ScopedJavaLocalRef<jobject> GetContainerView(); 151 base::android::ScopedJavaLocalRef<jobject> GetContainerView();
151 152
152 float GetDipScale(); 153 float GetDipScale();
153 154
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 206
206 gfx::Vector2dF content_offset_; // in CSS pixel. 207 gfx::Vector2dF content_offset_; // in CSS pixel.
207 std::unique_ptr<EventForwarder> event_forwarder_; 208 std::unique_ptr<EventForwarder> event_forwarder_;
208 209
209 DISALLOW_COPY_AND_ASSIGN(ViewAndroid); 210 DISALLOW_COPY_AND_ASSIGN(ViewAndroid);
210 }; 211 };
211 212
212 } // namespace ui 213 } // namespace ui
213 214
214 #endif // UI_ANDROID_VIEW_ANDROID_H_ 215 #endif // UI_ANDROID_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698