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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host.h

Issue 27147: Linux: server side backing stores (Closed)
Patch Set: ... Created 11 years, 10 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
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gfx/size.h" 10 #include "base/gfx/size.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 167
168 // Indicates if the page has finished loading. 168 // Indicates if the page has finished loading.
169 void SetIsLoading(bool is_loading); 169 void SetIsLoading(bool is_loading);
170 170
171 // Get access to the widget's backing store. If a resize is in progress, 171 // Get access to the widget's backing store. If a resize is in progress,
172 // then the current size of the backing store may be less than the size of 172 // then the current size of the backing store may be less than the size of
173 // the widget's view. This method returns NULL if the backing store could 173 // the widget's view. This method returns NULL if the backing store could
174 // not be created. 174 // not be created.
175 BackingStore* GetBackingStore(); 175 BackingStore* GetBackingStore();
176 176
177 // Allocate a new backing store of the given size. Returns NULL on failure
178 // (for example, if we don't currently have a RenderWidgetHostView.)
179 BackingStore* AllocBackingStore(const gfx::Size& size);
180
177 // Checks to see if we can give up focus to this widget through a JS call. 181 // Checks to see if we can give up focus to this widget through a JS call.
178 virtual bool CanBlur() const { return true; } 182 virtual bool CanBlur() const { return true; }
179 183
180 // Starts a hang monitor timeout. If there's already a hang monitor timeout 184 // Starts a hang monitor timeout. If there's already a hang monitor timeout
181 // the new one will only fire if it has a shorter delay than the time 185 // the new one will only fire if it has a shorter delay than the time
182 // left on the existing timeouts. 186 // left on the existing timeouts.
183 void StartHangMonitorTimeout(base::TimeDelta delay); 187 void StartHangMonitorTimeout(base::TimeDelta delay);
184 188
185 // Restart the active hang monitor timeout. Clears all existing timeouts and 189 // Restart the active hang monitor timeout. Clears all existing timeouts and
186 // starts with a new one. This can be because the renderer has become 190 // starts with a new one. This can be because the renderer has become
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 bool view_being_painted_; 347 bool view_being_painted_;
344 348
345 // Used for UMA histogram logging to measure the time for a repaint view 349 // Used for UMA histogram logging to measure the time for a repaint view
346 // operation to finish. 350 // operation to finish.
347 base::TimeTicks repaint_start_time_; 351 base::TimeTicks repaint_start_time_;
348 352
349 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 353 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
350 }; 354 };
351 355
352 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 356 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/backing_store_xcb.cc ('k') | chrome/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698