| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 // Creates a popup menu with |items|. | 142 // Creates a popup menu with |items|. |
| 143 // |multiple| defines if it should support multi-select. | 143 // |multiple| defines if it should support multi-select. |
| 144 // If not |multiple|, |selected_item| sets the initially selected item. | 144 // If not |multiple|, |selected_item| sets the initially selected item. |
| 145 // Otherwise, item's "checked" flag selects it. | 145 // Otherwise, item's "checked" flag selects it. |
| 146 void ShowSelectPopupMenu(const std::vector<WebMenuItem>& items, | 146 void ShowSelectPopupMenu(const std::vector<WebMenuItem>& items, |
| 147 int selected_item, | 147 int selected_item, |
| 148 bool multiple); | 148 bool multiple); |
| 149 | 149 |
| 150 void OnTabCrashed(const base::ProcessHandle handle); | 150 void OnTabCrashed(const base::ProcessHandle handle); |
| 151 void UpdateContentSize(int width, int height); |
| 152 void UpdateScrollOffsetAndPageScaleFactor(int x, int y, float scale); |
| 151 void ImeUpdateAdapter(int native_ime_adapter, int text_input_type, | 153 void ImeUpdateAdapter(int native_ime_adapter, int text_input_type, |
| 152 const std::string& text, | 154 const std::string& text, |
| 153 int selection_start, int selection_end, | 155 int selection_start, int selection_end, |
| 154 int composition_start, int composition_end, | 156 int composition_start, int composition_end, |
| 155 bool show_ime_if_needed); | 157 bool show_ime_if_needed); |
| 156 void SetTitle(const string16& title); | 158 void SetTitle(const string16& title); |
| 157 | 159 |
| 158 bool HasFocus(); | 160 bool HasFocus(); |
| 159 void ConfirmTouchEvent(bool handled); | 161 void ConfirmTouchEvent(bool handled); |
| 160 void DidSetNeedTouchEvents(bool need_touch_events); | 162 void DidSetNeedTouchEvents(bool need_touch_events); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 ui::WindowAndroid* window_android_; | 229 ui::WindowAndroid* window_android_; |
| 228 | 230 |
| 229 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 231 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 230 }; | 232 }; |
| 231 | 233 |
| 232 bool RegisterContentViewCore(JNIEnv* env); | 234 bool RegisterContentViewCore(JNIEnv* env); |
| 233 | 235 |
| 234 } // namespace content | 236 } // namespace content |
| 235 | 237 |
| 236 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 238 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |