OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #if defined(OS_MACOSX) | 9 #if defined(OS_MACOSX) |
10 #include <OpenGL/OpenGL.h> | 10 #include <OpenGL/OpenGL.h> |
11 #endif | 11 #endif |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "app/surface/transport_dib.h" | 16 #include "app/surface/transport_dib.h" |
| 17 #include "base/process_util.h" |
17 #include "gfx/native_widget_types.h" | 18 #include "gfx/native_widget_types.h" |
18 #include "third_party/skia/include/core/SkBitmap.h" | |
19 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" |
20 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" |
| 21 #include "third_party/skia/include/core/SkBitmap.h" |
21 | 22 |
22 namespace gfx { | 23 namespace gfx { |
23 class Rect; | 24 class Rect; |
24 class Size; | 25 class Size; |
25 } | 26 } |
26 namespace IPC { | 27 namespace IPC { |
27 class Message; | 28 class Message; |
28 } | 29 } |
29 | 30 |
30 class BackingStore; | 31 class BackingStore; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 // other hand, if this always blindly paints, then if we're already in the | 145 // other hand, if this always blindly paints, then if we're already in the |
145 // midst of a paint on the callstack, we can double-paint unnecessarily. | 146 // midst of a paint on the callstack, we can double-paint unnecessarily. |
146 // (Worse, we might recursively call RenderWidgetHost::GetBackingStore().) | 147 // (Worse, we might recursively call RenderWidgetHost::GetBackingStore().) |
147 // Thus implementers should generally paint as much of |rect| as possible | 148 // Thus implementers should generally paint as much of |rect| as possible |
148 // synchronously with as little overpainting as possible. | 149 // synchronously with as little overpainting as possible. |
149 virtual void DidUpdateBackingStore( | 150 virtual void DidUpdateBackingStore( |
150 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 151 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
151 const std::vector<gfx::Rect>& copy_rects) = 0; | 152 const std::vector<gfx::Rect>& copy_rects) = 0; |
152 | 153 |
153 // Notifies the View that the renderer has ceased to exist. | 154 // Notifies the View that the renderer has ceased to exist. |
154 virtual void RenderViewGone() = 0; | 155 virtual void RenderViewGone(base::TerminationStatus status, |
| 156 int error_code) = 0; |
155 | 157 |
156 // Notifies the View that the renderer will be delete soon. | 158 // Notifies the View that the renderer will be delete soon. |
157 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) = 0; | 159 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) = 0; |
158 | 160 |
159 // Tells the View to destroy itself. | 161 // Tells the View to destroy itself. |
160 virtual void Destroy() = 0; | 162 virtual void Destroy() = 0; |
161 | 163 |
162 // Tells the View that the tooltip text for the current mouse position over | 164 // Tells the View that the tooltip text for the current mouse position over |
163 // the page has changed. | 165 // the page has changed. |
164 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0; | 166 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0; |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 | 269 |
268 // A custom background to paint behind the web content. This will be tiled | 270 // A custom background to paint behind the web content. This will be tiled |
269 // horizontally. Can be null, in which case we fall back to painting white. | 271 // horizontally. Can be null, in which case we fall back to painting white. |
270 SkBitmap background_; | 272 SkBitmap background_; |
271 | 273 |
272 private: | 274 private: |
273 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 275 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
274 }; | 276 }; |
275 | 277 |
276 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 278 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |