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

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

Issue 3033004: Revert 52600 - renderer_host: Remove CanBlur method.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 | Annotate | Revision Log
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
248 // Starts a hang monitor timeout. If there's already a hang monitor timeout 251 // Starts a hang monitor timeout. If there's already a hang monitor timeout
249 // the new one will only fire if it has a shorter delay than the time 252 // the new one will only fire if it has a shorter delay than the time
250 // left on the existing timeouts. 253 // left on the existing timeouts.
251 void StartHangMonitorTimeout(base::TimeDelta delay); 254 void StartHangMonitorTimeout(base::TimeDelta delay);
252 255
253 // Restart the active hang monitor timeout. Clears all existing timeouts and 256 // Restart the active hang monitor timeout. Clears all existing timeouts and
254 // starts with a new one. This can be because the renderer has become 257 // starts with a new one. This can be because the renderer has become
255 // active, the tab is being hidden, or the user has chosen to wait some more 258 // active, the tab is being hidden, or the user has chosen to wait some more
256 // to give the tab a chance to become active and we don't want to display a 259 // to give the tab a chance to become active and we don't want to display a
257 // warning too soon. 260 // warning too soon.
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 // we don't do it more than once. 696 // we don't do it more than once.
694 bool requested_accessibility_tree_; 697 bool requested_accessibility_tree_;
695 698
696 // Optional video YUV layer for used for out-of-process compositing. 699 // Optional video YUV layer for used for out-of-process compositing.
697 scoped_ptr<VideoLayer> video_layer_; 700 scoped_ptr<VideoLayer> video_layer_;
698 701
699 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 702 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
700 }; 703 };
701 704
702 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 705 #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