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

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

Issue 2812056: Relanding http://codereview.chromium.org/2870050/show. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: rebased Created 10 years, 5 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 BackingStore* AllocBackingStore(const gfx::Size& size); 238 BackingStore* AllocBackingStore(const gfx::Size& size);
239 239
240 // When a backing store does asynchronous painting, it will call this function 240 // When a backing store does asynchronous painting, it will call this function
241 // when it is done with the DIB. We will then forward a message to the 241 // when it is done with the DIB. We will then forward a message to the
242 // renderer to send another paint. 242 // renderer to send another paint.
243 void DonePaintingToBackingStore(); 243 void DonePaintingToBackingStore();
244 244
245 // Returns the video layer if it exists, NULL otherwise. 245 // Returns the video layer if it exists, NULL otherwise.
246 VideoLayer* video_layer() const { return video_layer_.get(); } 246 VideoLayer* video_layer() const { return video_layer_.get(); }
247 247
248 // Checks to see if we can give up focus to this widget through a JS call.
249 virtual bool CanBlur() const { return true; }
250
251 // Starts a hang monitor timeout. If there's already a hang monitor timeout 248 // Starts a hang monitor timeout. If there's already a hang monitor timeout
252 // the new one will only fire if it has a shorter delay than the time 249 // the new one will only fire if it has a shorter delay than the time
253 // left on the existing timeouts. 250 // left on the existing timeouts.
254 void StartHangMonitorTimeout(base::TimeDelta delay); 251 void StartHangMonitorTimeout(base::TimeDelta delay);
255 252
256 // Restart the active hang monitor timeout. Clears all existing timeouts and 253 // Restart the active hang monitor timeout. Clears all existing timeouts and
257 // starts with a new one. This can be because the renderer has become 254 // starts with a new one. This can be because the renderer has become
258 // active, the tab is being hidden, or the user has chosen to wait some more 255 // active, the tab is being hidden, or the user has chosen to wait some more
259 // to give the tab a chance to become active and we don't want to display a 256 // to give the tab a chance to become active and we don't want to display a
260 // warning too soon. 257 // warning too soon.
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 // we don't do it more than once. 693 // we don't do it more than once.
697 bool requested_accessibility_tree_; 694 bool requested_accessibility_tree_;
698 695
699 // Optional video YUV layer for used for out-of-process compositing. 696 // Optional video YUV layer for used for out-of-process compositing.
700 scoped_ptr<VideoLayer> video_layer_; 697 scoped_ptr<VideoLayer> video_layer_;
701 698
702 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 699 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
703 }; 700 };
704 701
705 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 702 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_delegate.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698