Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: content/browser/renderer_host/select_action_mode.h

Issue 2089933002: Context Menu Refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698