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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 // -------------------------------------------------------------------------- | 225 // -------------------------------------------------------------------------- |
226 // Public methods that call to Java via JNI | 226 // Public methods that call to Java via JNI |
227 // -------------------------------------------------------------------------- | 227 // -------------------------------------------------------------------------- |
228 | 228 |
229 void OnSmartClipDataExtracted(const base::string16& result); | 229 void OnSmartClipDataExtracted(const base::string16& result); |
230 | 230 |
231 // Creates a popup menu with |items|. | 231 // Creates a popup menu with |items|. |
232 // |multiple| defines if it should support multi-select. | 232 // |multiple| defines if it should support multi-select. |
233 // If not |multiple|, |selected_item| sets the initially selected item. | 233 // If not |multiple|, |selected_item| sets the initially selected item. |
234 // Otherwise, item's "checked" flag selects it. | 234 // Otherwise, item's "checked" flag selects it. |
235 void ShowSelectPopupMenu(const std::vector<MenuItem>& items, | 235 void ShowSelectPopupMenu(const gfx::Rect& bounds, |
| 236 const std::vector<MenuItem>& items, |
236 int selected_item, | 237 int selected_item, |
237 bool multiple); | 238 bool multiple); |
238 // Hides a visible popup menu. | 239 // Hides a visible popup menu. |
239 void HideSelectPopupMenu(); | 240 void HideSelectPopupMenu(); |
240 | 241 |
241 void OnTabCrashed(); | 242 void OnTabCrashed(); |
242 | 243 |
243 // All sizes and offsets are in CSS pixels as cached by the renderer. | 244 // All sizes and offsets are in CSS pixels as cached by the renderer. |
244 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | 245 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, |
245 float page_scale_factor, | 246 float page_scale_factor, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 bool geolocation_needs_pause_; | 377 bool geolocation_needs_pause_; |
377 | 378 |
378 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 379 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
379 }; | 380 }; |
380 | 381 |
381 bool RegisterContentViewCore(JNIEnv* env); | 382 bool RegisterContentViewCore(JNIEnv* env); |
382 | 383 |
383 } // namespace content | 384 } // namespace content |
384 | 385 |
385 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 386 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |