| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // Creates a popup menu with |items|. | 243 // Creates a popup menu with |items|. |
| 244 // |multiple| defines if it should support multi-select. | 244 // |multiple| defines if it should support multi-select. |
| 245 // If not |multiple|, |selected_item| sets the initially selected item. | 245 // If not |multiple|, |selected_item| sets the initially selected item. |
| 246 // Otherwise, item's "checked" flag selects it. | 246 // Otherwise, item's "checked" flag selects it. |
| 247 void ShowSelectPopupMenu(const std::vector<MenuItem>& items, | 247 void ShowSelectPopupMenu(const std::vector<MenuItem>& items, |
| 248 int selected_item, | 248 int selected_item, |
| 249 bool multiple); | 249 bool multiple); |
| 250 | 250 |
| 251 void OnTabCrashed(); | 251 void OnTabCrashed(); |
| 252 | 252 |
| 253 // All sizes and offsets are in CSS pixels as cached by the renderer. | 253 void UpdateFrameInfo(const cc::CompositorFrameMetadata& frame_metadata); |
| 254 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | |
| 255 float page_scale_factor, | |
| 256 const gfx::Vector2dF& page_scale_factor_limits, | |
| 257 const gfx::SizeF& content_size, | |
| 258 const gfx::SizeF& viewport_size, | |
| 259 const gfx::Vector2dF& controls_offset, | |
| 260 const gfx::Vector2dF& content_offset, | |
| 261 float overdraw_bottom_height); | |
| 262 | 254 |
| 263 void UpdateImeAdapter(int native_ime_adapter, int text_input_type, | 255 void UpdateImeAdapter(int native_ime_adapter, int text_input_type, |
| 264 const std::string& text, | 256 const std::string& text, |
| 265 int selection_start, int selection_end, | 257 int selection_start, int selection_end, |
| 266 int composition_start, int composition_end, | 258 int composition_start, int composition_end, |
| 267 bool show_ime_if_needed, bool require_ack); | 259 bool show_ime_if_needed, bool require_ack); |
| 268 void SetTitle(const base::string16& title); | 260 void SetTitle(const base::string16& title); |
| 269 void OnBackgroundColorChanged(SkColor color); | 261 void OnBackgroundColorChanged(SkColor color); |
| 270 | 262 |
| 271 bool HasFocus(); | 263 bool HasFocus(); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 bool geolocation_needs_pause_; | 387 bool geolocation_needs_pause_; |
| 396 | 388 |
| 397 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 389 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 398 }; | 390 }; |
| 399 | 391 |
| 400 bool RegisterContentViewCore(JNIEnv* env); | 392 bool RegisterContentViewCore(JNIEnv* env); |
| 401 | 393 |
| 402 } // namespace content | 394 } // namespace content |
| 403 | 395 |
| 404 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 396 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |