Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
|
no sievers
2016/06/23 23:16:41
nit: 2016
amaralp
2016/06/24 00:45:49
Done
| |
| 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 void show(); | |
| 22 void hide(); | |
| 23 void close(); | |
| 24 void move(const gfx::RectF&); | |
| 25 // static bool Register(JNIEnv* env); | |
| 26 | |
| 27 private: | |
| 28 float dpi_scale() const { return dpi_scale_; } | |
| 29 base::android::ScopedJavaGlobalRef<jobject> java_obj_; | |
| 30 const float dpi_scale_; | |
| 31 }; | |
| 32 | |
| 33 bool RegisterSelectActionMode(JNIEnv* env); | |
| 34 | |
| 35 } // content | |
| 36 | |
| 37 #endif // CONTENT_BROWSER_RENDERER_HOST_SELECT_ACTION_MODE_H_ | |
| OLD | NEW |