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 CHROME_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CHROME_RENDERER_RENDER_VIEW_H_ |
6 #define CHROME_RENDERER_RENDER_VIEW_H_ | 6 #define CHROME_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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 // RenderWidget overrides: | 658 // RenderWidget overrides: |
659 virtual void Close(); | 659 virtual void Close(); |
660 virtual void OnResize(const gfx::Size& new_size, | 660 virtual void OnResize(const gfx::Size& new_size, |
661 const gfx::Rect& resizer_rect); | 661 const gfx::Rect& resizer_rect); |
662 virtual void DidInitiatePaint(); | 662 virtual void DidInitiatePaint(); |
663 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 663 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
664 const gfx::Rect& paint_bounds, | 664 const gfx::Rect& paint_bounds, |
665 TransportDIB** dib, | 665 TransportDIB** dib, |
666 gfx::Rect* location, | 666 gfx::Rect* location, |
667 gfx::Rect* clip); | 667 gfx::Rect* clip); |
| 668 virtual gfx::Size GetScrollOffset(); |
668 virtual void DidHandleKeyEvent(); | 669 virtual void DidHandleKeyEvent(); |
669 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); | 670 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); |
670 virtual void OnSetFocus(bool enable); | 671 virtual void OnSetFocus(bool enable); |
671 #if OS_MACOSX | 672 #if OS_MACOSX |
672 virtual void OnWasHidden(); | 673 virtual void OnWasHidden(); |
673 virtual void OnWasRestored(bool needs_repainting); | 674 virtual void OnWasRestored(bool needs_repainting); |
674 #endif | 675 #endif |
675 | 676 |
676 private: | 677 private: |
677 // For unit tests. | 678 // For unit tests. |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1474 // bunch of stuff, you should probably create a helper class and put your | 1475 // bunch of stuff, you should probably create a helper class and put your |
1475 // data and methods on that to avoid bloating RenderView more. You can use | 1476 // data and methods on that to avoid bloating RenderView more. You can use |
1476 // the Observer interface to filter IPC messages and receive frame change | 1477 // the Observer interface to filter IPC messages and receive frame change |
1477 // notifications. | 1478 // notifications. |
1478 // --------------------------------------------------------------------------- | 1479 // --------------------------------------------------------------------------- |
1479 | 1480 |
1480 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1481 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1481 }; | 1482 }; |
1482 | 1483 |
1483 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1484 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |