| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 #include "base/gfx/native_widget_types.h" | 8 #include "base/gfx/native_widget_types.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "chrome/common/render_messages.h" | 10 #include "webkit/glue/webplugin.h" |
| 11 | 11 |
| 12 namespace gfx { | 12 namespace gfx { |
| 13 class Rect; | 13 class Rect; |
| 14 class Size; | 14 class Size; |
| 15 } | 15 } |
| 16 namespace IPC { | 16 namespace IPC { |
| 17 class Message; | 17 class Message; |
| 18 } | 18 } |
| 19 | 19 |
| 20 class RenderProcessHost; | 20 class RenderProcessHost; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Sets the cursor to the one associated with the specified cursor_type | 78 // Sets the cursor to the one associated with the specified cursor_type |
| 79 virtual void UpdateCursor(const WebCursor& cursor) = 0; | 79 virtual void UpdateCursor(const WebCursor& cursor) = 0; |
| 80 | 80 |
| 81 // Updates the displayed cursor to the current one. | 81 // Updates the displayed cursor to the current one. |
| 82 virtual void UpdateCursorIfOverSelf() = 0; | 82 virtual void UpdateCursorIfOverSelf() = 0; |
| 83 | 83 |
| 84 // Indicates whether the page has finished loading. | 84 // Indicates whether the page has finished loading. |
| 85 virtual void SetIsLoading(bool is_loading) = 0; | 85 virtual void SetIsLoading(bool is_loading) = 0; |
| 86 | 86 |
| 87 // Enable or disable IME for the view. | 87 // Enable or disable IME for the view. |
| 88 virtual void IMEUpdateStatus(ViewHostMsg_ImeControl control, | 88 virtual void IMEUpdateStatus(int control, const gfx::Rect& caret_rect) = 0; |
| 89 const gfx::Rect& caret_rect) = 0; | |
| 90 | 89 |
| 91 // Informs the view that a portion of the widget's backing store was painted. | 90 // Informs the view that a portion of the widget's backing store was painted. |
| 92 // The view should copy the given rect from the backing store of the render | 91 // The view should copy the given rect from the backing store of the render |
| 93 // widget onto the screen. | 92 // widget onto the screen. |
| 94 virtual void DidPaintRect(const gfx::Rect& rect) = 0; | 93 virtual void DidPaintRect(const gfx::Rect& rect) = 0; |
| 95 | 94 |
| 96 // Informs the view that a portion of the widget's backing store was scrolled | 95 // Informs the view that a portion of the widget's backing store was scrolled |
| 97 // by dx pixels horizontally and dy pixels vertically. The view should copy | 96 // by dx pixels horizontally and dy pixels vertically. The view should copy |
| 98 // the exposed pixels from the backing store of the render widget (which has | 97 // the exposed pixels from the backing store of the render widget (which has |
| 99 // already been scrolled) onto the screen. | 98 // already been scrolled) onto the screen. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 113 protected: | 112 protected: |
| 114 // Interface class only, do not construct. | 113 // Interface class only, do not construct. |
| 115 RenderWidgetHostView() {} | 114 RenderWidgetHostView() {} |
| 116 | 115 |
| 117 private: | 116 private: |
| 118 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 117 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 119 }; | 118 }; |
| 120 | 119 |
| 121 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 120 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| 122 | 121 |
| OLD | NEW |