OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 virtual void Close(); | 617 virtual void Close(); |
618 virtual void OnResize(const gfx::Size& new_size, | 618 virtual void OnResize(const gfx::Size& new_size, |
619 const gfx::Rect& resizer_rect); | 619 const gfx::Rect& resizer_rect); |
620 virtual void DidInitiatePaint(); | 620 virtual void DidInitiatePaint(); |
621 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 621 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
622 const gfx::Rect& paint_bounds, | 622 const gfx::Rect& paint_bounds, |
623 TransportDIB** dib, | 623 TransportDIB** dib, |
624 gfx::Rect* location, | 624 gfx::Rect* location, |
625 gfx::Rect* clip); | 625 gfx::Rect* clip); |
626 virtual gfx::Point GetScrollOffset(); | 626 virtual gfx::Point GetScrollOffset(); |
| 627 virtual gfx::Size GetContentsSize(); |
627 virtual void DidHandleKeyEvent(); | 628 virtual void DidHandleKeyEvent(); |
628 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); | 629 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); |
629 virtual void OnSetFocus(bool enable); | 630 virtual void OnSetFocus(bool enable); |
630 virtual void OnWasHidden(); | 631 virtual void OnWasHidden(); |
631 virtual void OnWasRestored(bool needs_repainting); | 632 virtual void OnWasRestored(bool needs_repainting); |
632 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; | 633 virtual bool SupportsAsynchronousSwapBuffers() OVERRIDE; |
633 virtual void OnImeSetComposition( | 634 virtual void OnImeSetComposition( |
634 const string16& text, | 635 const string16& text, |
635 const std::vector<WebKit::WebCompositionUnderline>& underlines, | 636 const std::vector<WebKit::WebCompositionUnderline>& underlines, |
636 int selection_start, | 637 int selection_start, |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 // bunch of stuff, you should probably create a helper class and put your | 1210 // bunch of stuff, you should probably create a helper class and put your |
1210 // data and methods on that to avoid bloating RenderView more. You can use | 1211 // data and methods on that to avoid bloating RenderView more. You can use |
1211 // the Observer interface to filter IPC messages and receive frame change | 1212 // the Observer interface to filter IPC messages and receive frame change |
1212 // notifications. | 1213 // notifications. |
1213 // --------------------------------------------------------------------------- | 1214 // --------------------------------------------------------------------------- |
1214 | 1215 |
1215 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1216 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1216 }; | 1217 }; |
1217 | 1218 |
1218 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1219 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |