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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.h

Issue 714003002: Allow changing top controls height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 virtual ~RenderWidgetCompositor(); 47 virtual ~RenderWidgetCompositor();
48 48
49 const base::WeakPtr<cc::InputHandler>& GetInputHandler(); 49 const base::WeakPtr<cc::InputHandler>& GetInputHandler();
50 bool BeginMainFrameRequested() const; 50 bool BeginMainFrameRequested() const;
51 void SetNeedsDisplayOnAllLayers(); 51 void SetNeedsDisplayOnAllLayers();
52 void SetRasterizeOnlyVisibleContent(); 52 void SetRasterizeOnlyVisibleContent();
53 void UpdateTopControlsState(cc::TopControlsState constraints, 53 void UpdateTopControlsState(cc::TopControlsState constraints,
54 cc::TopControlsState current, 54 cc::TopControlsState current,
55 bool animate); 55 bool animate);
56 void SetTopControlsLayoutHeight(float height); 56 void SetTopControlsShrinkBlinkSize(bool shrink);
57 void SetTopControlsHeight(float height);
57 void SetNeedsRedrawRect(gfx::Rect damage_rect); 58 void SetNeedsRedrawRect(gfx::Rect damage_rect);
58 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs. 59 // Like setNeedsRedraw but forces the frame to be drawn, without early-outs.
59 // Redraw will be forced after the next commit 60 // Redraw will be forced after the next commit
60 void SetNeedsForcedRedraw(); 61 void SetNeedsForcedRedraw();
61 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped 62 // Calling CreateLatencyInfoSwapPromiseMonitor() to get a scoped
62 // LatencyInfoSwapPromiseMonitor. During the life time of the 63 // LatencyInfoSwapPromiseMonitor. During the life time of the
63 // LatencyInfoSwapPromiseMonitor, if SetNeedsCommit() or SetNeedsUpdateLayer() 64 // LatencyInfoSwapPromiseMonitor, if SetNeedsCommit() or SetNeedsUpdateLayer()
64 // is called on LayerTreeHost, the original latency info will be turned 65 // is called on LayerTreeHost, the original latency info will be turned
65 // into a LatencyInfoSwapPromise. 66 // into a LatencyInfoSwapPromise.
66 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 67 scoped_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 168
168 bool send_v8_idle_notification_after_commit_; 169 bool send_v8_idle_notification_after_commit_;
169 base::TimeTicks begin_main_frame_time_; 170 base::TimeTicks begin_main_frame_time_;
170 // The time interval between BeginMainFrame calls, provided by the scheduler. 171 // The time interval between BeginMainFrame calls, provided by the scheduler.
171 base::TimeDelta begin_main_frame_interval_; 172 base::TimeDelta begin_main_frame_interval_;
172 }; 173 };
173 174
174 } // namespace content 175 } // namespace content
175 176
176 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 177 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/public/test/render_widget_test.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698