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

Unified Diff: content/renderer/external_popup_menu.h

Issue 1003113003: [DevTools] Handle emulation in embedder, call into web API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests and mac popups compilation Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/devtools/devtools_agent.cc ('k') | content/renderer/external_popup_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/external_popup_menu.h
diff --git a/content/renderer/external_popup_menu.h b/content/renderer/external_popup_menu.h
index da7374720aa8be5021913ce751c0e68fb80f761b..ccd4fdc3185a68678f53564f14bf563f3eccacbd 100644
--- a/content/renderer/external_popup_menu.h
+++ b/content/renderer/external_popup_menu.h
@@ -10,7 +10,7 @@
#include "base/basictypes.h"
#include "third_party/WebKit/public/web/WebExternalPopupMenu.h"
#include "third_party/WebKit/public/web/WebPopupMenuInfo.h"
-#include "ui/gfx/geometry/point.h"
+#include "ui/gfx/geometry/point_f.h"
namespace blink {
class WebExternalPopupMenuClient;
@@ -28,7 +28,7 @@ class ExternalPopupMenu : public blink::WebExternalPopupMenu {
virtual ~ExternalPopupMenu() {}
void SetOriginScaleAndOffsetForEmulation(
- float scale, const gfx::Point& offset);
+ float scale, const gfx::PointF& offset);
#if defined(OS_MACOSX)
// Called when the user has selected an item. |selected_item| is -1 if the
@@ -53,7 +53,7 @@ class ExternalPopupMenu : public blink::WebExternalPopupMenu {
// Popups may be displaced when screen metrics emulation is enabled.
// These scale and offset are used to properly adjust popup position.
float origin_scale_for_emulation_;
- gfx::Point origin_offset_for_emulation_;
+ gfx::PointF origin_offset_for_emulation_;
DISALLOW_COPY_AND_ASSIGN(ExternalPopupMenu);
};
« no previous file with comments | « content/renderer/devtools/devtools_agent.cc ('k') | content/renderer/external_popup_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698