| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SELECT_ACTION_MODE_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_SELECT_ACTION_MODE_H_ |
| 7 |
| 8 #include <jni.h> |
| 9 |
| 10 #include "base/android/scoped_java_ref.h" |
| 11 #include "content/public/common/context_menu_params.h" |
| 12 #include "ui/gfx/geometry/rect_f.h" |
| 13 |
| 14 namespace content { |
| 15 |
| 16 // An implementation of ActionMode. This class is a |
| 17 // bridge to a Java implementation. |
| 18 class SelectActionMode { |
| 19 public: |
| 20 SelectActionMode(const content::ContextMenuParams& params); |
| 21 ~SelectActionMode(); |
| 22 void show(); |
| 23 void hide(); |
| 24 void move(const gfx::RectF&); |
| 25 // static bool Register(JNIEnv* env); |
| 26 |
| 27 private: |
| 28 void close(); |
| 29 float dpi_scale() const { return dpi_scale_; } |
| 30 base::android::ScopedJavaGlobalRef<jobject> java_obj_; |
| 31 const float dpi_scale_; |
| 32 }; |
| 33 |
| 34 bool RegisterSelectActionMode(JNIEnv* env); |
| 35 |
| 36 } // content |
| 37 |
| 38 #endif // CONTENT_BROWSER_RENDERER_HOST_SELECT_ACTION_MODE_H_ |
| OLD | NEW |