summaryrefslogtreecommitdiffstats
path: root/cc/trees/proxy.h
diff options
context:
space:
mode:
authorkhushalsagar <khushalsagar@chromium.org>2015-10-16 17:05:48 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-17 00:06:21 +0000
commitc646cd66fa7cfdf47aa2c954b0d6b57a4c0e7d4e (patch)
tree86e5b8e5339479edb99e517d1ec1c37d72518bde /cc/trees/proxy.h
parentf0fa84cdd8a2037059bec96df1bf6eb3d533ebf9 (diff)
downloadchromium_src-c646cd66fa7cfdf47aa2c954b0d6b57a4c0e7d4e.zip
chromium_src-c646cd66fa7cfdf47aa2c954b0d6b57a4c0e7d4e.tar.gz
chromium_src-c646cd66fa7cfdf47aa2c954b0d6b57a4c0e7d4e.tar.bz2
cc : Add API to update the Top Controls State to Proxy
LayerTreeHost currently posts a task on the impl thread to update the top controls state on the top controls manager owned by the LayerTreeHostImpl. Route this inter-thread communication via the Channel to separate the main and impl components. BUG=527200 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1400043003 Cr-Commit-Position: refs/heads/master@{#354647}
Diffstat (limited to 'cc/trees/proxy.h')
-rw-r--r--cc/trees/proxy.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/trees/proxy.h b/cc/trees/proxy.h
index 93f1cdb..2750df3 100644
--- a/cc/trees/proxy.h
+++ b/cc/trees/proxy.h
@@ -15,6 +15,7 @@
#include "base/time/time.h"
#include "base/values.h"
#include "cc/base/cc_export.h"
+#include "cc/input/top_controls_state.h"
namespace base {
namespace trace_event {
@@ -98,6 +99,10 @@ class CC_EXPORT Proxy {
virtual void SetAuthoritativeVSyncInterval(
const base::TimeDelta& interval) = 0;
+ virtual void UpdateTopControlsState(TopControlsState constraints,
+ TopControlsState current,
+ bool animate) = 0;
+
// Testing hooks
virtual bool MainFrameWillHappenForTesting() = 0;