| 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 "gfx/rect.h" | 19 #include "gfx/rect.h" |
| 19 #include "third_party/skia/include/core/SkBitmap.h" | 20 #include "third_party/skia/include/core/SkBitmap.h" |
| 20 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" | 21 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" |
| 21 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" | 22 #include "third_party/WebKit/WebKit/chromium/public/WebTextInputType.h" |
| 23 #include "third_party/skia/include/core/SkBitmap.h" |
| 22 | 24 |
| 23 namespace gfx { | 25 namespace gfx { |
| 24 class Rect; | 26 class Rect; |
| 25 class Size; | 27 class Size; |
| 26 } | 28 } |
| 27 namespace IPC { | 29 namespace IPC { |
| 28 class Message; | 30 class Message; |
| 29 } | 31 } |
| 30 | 32 |
| 31 class BackingStore; | 33 class BackingStore; |
| (...skipping 112 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 | 146 // 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. | 147 // midst of a paint on the callstack, we can double-paint unnecessarily. |
| 146 // (Worse, we might recursively call RenderWidgetHost::GetBackingStore().) | 148 // (Worse, we might recursively call RenderWidgetHost::GetBackingStore().) |
| 147 // Thus implementers should generally paint as much of |rect| as possible | 149 // Thus implementers should generally paint as much of |rect| as possible |
| 148 // synchronously with as little overpainting as possible. | 150 // synchronously with as little overpainting as possible. |
| 149 virtual void DidUpdateBackingStore( | 151 virtual void DidUpdateBackingStore( |
| 150 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 152 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
| 151 const std::vector<gfx::Rect>& copy_rects) = 0; | 153 const std::vector<gfx::Rect>& copy_rects) = 0; |
| 152 | 154 |
| 153 // Notifies the View that the renderer has ceased to exist. | 155 // Notifies the View that the renderer has ceased to exist. |
| 154 virtual void RenderViewGone() = 0; | 156 virtual void RenderViewGone(base::TerminationStatus status, |
| 157 int error_code) = 0; |
| 155 | 158 |
| 156 // Notifies the View that the renderer will be delete soon. | 159 // Notifies the View that the renderer will be delete soon. |
| 157 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) = 0; | 160 virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) = 0; |
| 158 | 161 |
| 159 // Tells the View to destroy itself. | 162 // Tells the View to destroy itself. |
| 160 virtual void Destroy() = 0; | 163 virtual void Destroy() = 0; |
| 161 | 164 |
| 162 // Tells the View that the tooltip text for the current mouse position over | 165 // Tells the View that the tooltip text for the current mouse position over |
| 163 // the page has changed. | 166 // the page has changed. |
| 164 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0; | 167 virtual void SetTooltipText(const std::wstring& tooltip_text) = 0; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 | 285 |
| 283 // The current reserved area in view coordinates where contents should not be | 286 // The current reserved area in view coordinates where contents should not be |
| 284 // rendered to draw the resize corner, sidebar mini tabs etc. | 287 // rendered to draw the resize corner, sidebar mini tabs etc. |
| 285 gfx::Rect reserved_rect_; | 288 gfx::Rect reserved_rect_; |
| 286 | 289 |
| 287 private: | 290 private: |
| 288 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 291 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 289 }; | 292 }; |
| 290 | 293 |
| 291 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 294 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |