| 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" |
| 22 | 23 |
| 23 namespace gfx { | 24 namespace gfx { |
| 24 class Rect; | 25 class Rect; |
| 25 class Size; | 26 class Size; |
| 26 } | 27 } |
| (...skipping 117 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 | 301 |
| 300 // The current reserved area in view coordinates where contents should not be | 302 // The current reserved area in view coordinates where contents should not be |
| 301 // rendered to draw the resize corner, sidebar mini tabs etc. | 303 // rendered to draw the resize corner, sidebar mini tabs etc. |
| 302 gfx::Rect reserved_rect_; | 304 gfx::Rect reserved_rect_; |
| 303 | 305 |
| 304 private: | 306 private: |
| 305 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 307 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 306 }; | 308 }; |
| 307 | 309 |
| 308 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 310 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |