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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 // -------------------------------------------------------------------------- | 237 // -------------------------------------------------------------------------- |
238 // Public methods that call to Java via JNI | 238 // Public methods that call to Java via JNI |
239 // -------------------------------------------------------------------------- | 239 // -------------------------------------------------------------------------- |
240 | 240 |
241 void OnSmartClipDataExtracted(const base::string16& result); | 241 void OnSmartClipDataExtracted(const base::string16& result); |
242 | 242 |
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 gfx::Rect& bounds, |
| 248 const std::vector<MenuItem>& items, |
248 int selected_item, | 249 int selected_item, |
249 bool multiple); | 250 bool multiple); |
250 // Hides a visible popup menu. | 251 // Hides a visible popup menu. |
251 void HideSelectPopupMenu(); | 252 void HideSelectPopupMenu(); |
252 | 253 |
253 void OnTabCrashed(); | 254 void OnTabCrashed(); |
254 | 255 |
255 // All sizes and offsets are in CSS pixels as cached by the renderer. | 256 // All sizes and offsets are in CSS pixels as cached by the renderer. |
256 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | 257 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, |
257 float page_scale_factor, | 258 float page_scale_factor, |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 bool geolocation_needs_pause_; | 407 bool geolocation_needs_pause_; |
407 | 408 |
408 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 409 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
409 }; | 410 }; |
410 | 411 |
411 bool RegisterContentViewCore(JNIEnv* env); | 412 bool RegisterContentViewCore(JNIEnv* env); |
412 | 413 |
413 } // namespace content | 414 } // namespace content |
414 | 415 |
415 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 416 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |