Chromium Code Reviews| Index: content/browser/renderer_host/select_action_mode.h |
| diff --git a/content/browser/renderer_host/select_action_mode.h b/content/browser/renderer_host/select_action_mode.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..fdd6a9bd67a56632b5a2e6d38a1b667a30d07cc5 |
| --- /dev/null |
| +++ b/content/browser/renderer_host/select_action_mode.h |
| @@ -0,0 +1,37 @@ |
| +// 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
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_BROWSER_RENDERER_HOST_SELECT_ACTION_MODE_H_ |
| +#define CONTENT_BROWSER_RENDERER_HOST_SELECT_ACTION_MODE_H_ |
| + |
| +#include <jni.h> |
| + |
| +#include "base/android/scoped_java_ref.h" |
| +#include "content/public/common/context_menu_params.h" |
| +#include "ui/gfx/geometry/rect_f.h" |
| + |
| +namespace content { |
| + |
| +// An implementation of ActionMode. This class is a |
| +// bridge to a Java implementation. |
| +class SelectActionMode { |
| + public: |
| + SelectActionMode(const content::ContextMenuParams& params); |
| + void show(); |
| + void hide(); |
| + void close(); |
| + void move(const gfx::RectF&); |
| + // static bool Register(JNIEnv* env); |
| + |
| + private: |
| + float dpi_scale() const { return dpi_scale_; } |
| + base::android::ScopedJavaGlobalRef<jobject> java_obj_; |
| + const float dpi_scale_; |
| +}; |
| + |
| +bool RegisterSelectActionMode(JNIEnv* env); |
| + |
| +} // content |
| + |
| +#endif // CONTENT_BROWSER_RENDERER_HOST_SELECT_ACTION_MODE_H_ |