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

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

Issue 9347042: Introduce content::RenderWidgetHostViewPort (in content/port/browser). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head. Created 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 25 matching lines...) Expand all
36 class TransportDIB; 36 class TransportDIB;
37 struct ViewHostMsg_UpdateRect_Params; 37 struct ViewHostMsg_UpdateRect_Params;
38 class WebCursor; 38 class WebCursor;
39 39
40 namespace base { 40 namespace base {
41 class TimeTicks; 41 class TimeTicks;
42 } 42 }
43 43
44 namespace content { 44 namespace content {
45 class RenderProcessHost; 45 class RenderProcessHost;
46 class RenderWidgetHostViewPort;
46 } 47 }
47 48
48 namespace gfx { 49 namespace gfx {
49 class Rect; 50 class Rect;
50 } 51 }
51 52
52 namespace ui { 53 namespace ui {
53 class Range; 54 class Range;
54 } 55 }
55 56
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 // Indicates if the render widget host should track the render widget's size 542 // Indicates if the render widget host should track the render widget's size
542 // as opposed to visa versa. 543 // as opposed to visa versa.
543 void SetShouldAutoResize(bool enable); 544 void SetShouldAutoResize(bool enable);
544 545
545 protected: 546 protected:
546 // The View associated with the RenderViewHost. The lifetime of this object 547 // The View associated with the RenderViewHost. The lifetime of this object
547 // is associated with the lifetime of the Render process. If the Renderer 548 // is associated with the lifetime of the Render process. If the Renderer
548 // crashes, its View is destroyed and this pointer becomes NULL, even though 549 // crashes, its View is destroyed and this pointer becomes NULL, even though
549 // render_view_host_ lives on to load another URL (creating a new View while 550 // render_view_host_ lives on to load another URL (creating a new View while
550 // doing so). 551 // doing so).
551 RenderWidgetHostViewBase* view_; 552 content::RenderWidgetHostViewPort* view_;
552 553
553 // true if a renderer has once been valid. We use this flag to display a sad 554 // true if a renderer has once been valid. We use this flag to display a sad
554 // tab only when we lose our renderer and not if a paint occurs during 555 // tab only when we lose our renderer and not if a paint occurs during
555 // initialization. 556 // initialization.
556 bool renderer_initialized_; 557 bool renderer_initialized_;
557 558
558 // This value indicates how long to wait before we consider a renderer hung. 559 // This value indicates how long to wait before we consider a renderer hung.
559 int hung_renderer_delay_ms_; 560 int hung_renderer_delay_ms_;
560 561
561 private: 562 private:
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 // then touch events are sent to the renderer. Otherwise, the touch events are 818 // then touch events are sent to the renderer. Otherwise, the touch events are
818 // not sent to the renderer. 819 // not sent to the renderer.
819 bool has_touch_handler_; 820 bool has_touch_handler_;
820 821
821 base::WeakPtrFactory<RenderWidgetHost> weak_factory_; 822 base::WeakPtrFactory<RenderWidgetHost> weak_factory_;
822 823
823 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 824 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
824 }; 825 };
825 826
826 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 827 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host_ui_shim.cc ('k') | content/browser/renderer_host/render_widget_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698