| OLD | NEW |
| 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 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_helper.h" | 10 #include "base/android/jni_helper.h" |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // |multiple| defines if it should support multi-select. | 222 // |multiple| defines if it should support multi-select. |
| 223 // If not |multiple|, |selected_item| sets the initially selected item. | 223 // If not |multiple|, |selected_item| sets the initially selected item. |
| 224 // Otherwise, item's "checked" flag selects it. | 224 // Otherwise, item's "checked" flag selects it. |
| 225 void ShowSelectPopupMenu(const std::vector<WebMenuItem>& items, | 225 void ShowSelectPopupMenu(const std::vector<WebMenuItem>& items, |
| 226 int selected_item, | 226 int selected_item, |
| 227 bool multiple); | 227 bool multiple); |
| 228 | 228 |
| 229 void OnTabCrashed(); | 229 void OnTabCrashed(); |
| 230 void UpdateContentSize(int width, int height); | 230 void UpdateContentSize(int width, int height); |
| 231 void UpdateScrollOffsetAndPageScaleFactor(int x, int y, float scale); | 231 void UpdateScrollOffsetAndPageScaleFactor(int x, int y, float scale); |
| 232 void UpdateUnusedScrollOffset(int x, int y); |
| 232 void UpdatePageScaleLimits(float minimum_scale, float maximum_scale); | 233 void UpdatePageScaleLimits(float minimum_scale, float maximum_scale); |
| 233 void UpdateOffsetsForFullscreen(float controls_offset_y, | 234 void UpdateOffsetsForFullscreen(float controls_offset_y, |
| 234 float content_offset_y); | 235 float content_offset_y); |
| 235 void ImeUpdateAdapter(int native_ime_adapter, int text_input_type, | 236 void ImeUpdateAdapter(int native_ime_adapter, int text_input_type, |
| 236 const std::string& text, | 237 const std::string& text, |
| 237 int selection_start, int selection_end, | 238 int selection_start, int selection_end, |
| 238 int composition_start, int composition_end, | 239 int composition_start, int composition_end, |
| 239 bool show_ime_if_needed); | 240 bool show_ime_if_needed); |
| 240 void SetTitle(const string16& title); | 241 void SetTitle(const string16& title); |
| 241 void OnBackgroundColorChanged(SkColor color); | 242 void OnBackgroundColorChanged(SkColor color); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 ui::WindowAndroid* window_android_; | 331 ui::WindowAndroid* window_android_; |
| 331 | 332 |
| 332 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 333 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 333 }; | 334 }; |
| 334 | 335 |
| 335 bool RegisterContentViewCore(JNIEnv* env); | 336 bool RegisterContentViewCore(JNIEnv* env); |
| 336 | 337 |
| 337 } // namespace content | 338 } // namespace content |
| 338 | 339 |
| 339 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 340 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |