diff options
author | tommycli <tommycli@chromium.org> | 2015-07-14 11:25:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-14 18:26:41 +0000 |
commit | 5ffce36e4eb2986a39172dd26f8f9a8cef8308a3 (patch) | |
tree | aa88981663a3beb5fa9d475b4791340876c9c2ea /components/plugins/renderer/loadable_plugin_placeholder.h | |
parent | f9ce01dccdb33e0646ef6fc2e71bf14d1f97cf96 (diff) | |
download | chromium_src-5ffce36e4eb2986a39172dd26f8f9a8cef8308a3.zip chromium_src-5ffce36e4eb2986a39172dd26f8f9a8cef8308a3.tar.gz chromium_src-5ffce36e4eb2986a39172dd26f8f9a8cef8308a3.tar.bz2 |
Plugin Power Saver: Center 'Play' icon for all partially obscured plugins.
This centers the 'Play' icon correctly even if the plugin's left side or
top side is obscured.
BUG=503771
Review URL: https://codereview.chromium.org/1234103002
Cr-Commit-Position: refs/heads/master@{#338717}
Diffstat (limited to 'components/plugins/renderer/loadable_plugin_placeholder.h')
-rw-r--r-- | components/plugins/renderer/loadable_plugin_placeholder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/plugins/renderer/loadable_plugin_placeholder.h b/components/plugins/renderer/loadable_plugin_placeholder.h index 13b903d..0221a0f 100644 --- a/components/plugins/renderer/loadable_plugin_placeholder.h +++ b/components/plugins/renderer/loadable_plugin_placeholder.h @@ -76,7 +76,7 @@ class LoadablePluginPlaceholder : public PluginPlaceholderBase { void PluginDestroyed() override; v8::Local<v8::Object> GetV8ScriptableObject( v8::Isolate* isolate) const override; - void OnUnobscuredSizeUpdate(const gfx::Size& unobscured_size) override; + void OnUnobscuredRectUpdate(const gfx::Rect& unobscured_rect) override; // RenderFrameObserver methods: void WasShown() override; @@ -118,7 +118,7 @@ class LoadablePluginPlaceholder : public PluginPlaceholderBase { // Used to prevent re-entrancy during the size recheck for throttled plugins. bool in_size_recheck_; - gfx::Size unobscured_size_; + gfx::Rect unobscured_rect_; base::OneShotTimer<LoadablePluginPlaceholder> size_update_timer_; base::WeakPtrFactory<LoadablePluginPlaceholder> weak_factory_; |