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_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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 const GURL& url, | 663 const GURL& url, |
664 const gfx::Size& size, | 664 const gfx::Size& size, |
665 const std::string& json_arguments, | 665 const std::string& json_arguments, |
666 std::string* json_retval); | 666 std::string* json_retval); |
667 virtual WebKit::WebCookieJar* GetCookieJar(); | 667 virtual WebKit::WebCookieJar* GetCookieJar(); |
668 | 668 |
669 // Please do not add your stuff randomly to the end here. If there is an | 669 // Please do not add your stuff randomly to the end here. If there is an |
670 // appropriate section, add it there. If not, there are some random functions | 670 // appropriate section, add it there. If not, there are some random functions |
671 // nearer to the top you can add it to. | 671 // nearer to the top you can add it to. |
672 | 672 |
| 673 virtual void DidFlushPaint(); |
| 674 |
673 protected: | 675 protected: |
674 // RenderWidget overrides: | 676 // RenderWidget overrides: |
675 virtual void Close(); | 677 virtual void Close(); |
676 virtual void OnResize(const gfx::Size& new_size, | 678 virtual void OnResize(const gfx::Size& new_size, |
677 const gfx::Rect& resizer_rect); | 679 const gfx::Rect& resizer_rect); |
678 virtual void DidInitiatePaint(); | 680 virtual void DidInitiatePaint(); |
679 virtual void DidFlushPaint(); | |
680 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 681 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
681 const gfx::Rect& paint_bounds, | 682 const gfx::Rect& paint_bounds, |
682 TransportDIB** dib, | 683 TransportDIB** dib, |
683 gfx::Rect* location, | 684 gfx::Rect* location, |
684 gfx::Rect* clip); | 685 gfx::Rect* clip); |
685 virtual void DidHandleKeyEvent(); | 686 virtual void DidHandleKeyEvent(); |
686 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); | 687 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); |
687 virtual void OnSetFocus(bool enable); | 688 virtual void OnSetFocus(bool enable); |
688 #if OS_MACOSX | 689 #if OS_MACOSX |
689 virtual void OnWasHidden(); | 690 virtual void OnWasHidden(); |
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1508 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1509 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
1509 // sections rather than throwing it randomly at the end. If you're adding a | 1510 // sections rather than throwing it randomly at the end. If you're adding a |
1510 // bunch of stuff, you should probably create a helper class and put your | 1511 // bunch of stuff, you should probably create a helper class and put your |
1511 // data and methods on that to avoid bloating RenderView more. | 1512 // data and methods on that to avoid bloating RenderView more. |
1512 // --------------------------------------------------------------------------- | 1513 // --------------------------------------------------------------------------- |
1513 | 1514 |
1514 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1515 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1515 }; | 1516 }; |
1516 | 1517 |
1517 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1518 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |