| 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..42856d26fba80c3dba0a692a357179778d3b5b90
|
| --- /dev/null
|
| +++ b/content/browser/renderer_host/select_action_mode.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// 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);
|
| + ~SelectActionMode();
|
| + void show();
|
| + void hide();
|
| + void move(const gfx::RectF&);
|
| + // static bool Register(JNIEnv* env);
|
| +
|
| + private:
|
| + void close();
|
| + 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_
|
|
|