| 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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 | 603 |
| 604 protected: | 604 protected: |
| 605 // RenderWidget overrides: | 605 // RenderWidget overrides: |
| 606 virtual void Close(); | 606 virtual void Close(); |
| 607 virtual void OnResize(const gfx::Size& new_size, | 607 virtual void OnResize(const gfx::Size& new_size, |
| 608 const gfx::Rect& resizer_rect); | 608 const gfx::Rect& resizer_rect); |
| 609 virtual void DidInitiatePaint(); | 609 virtual void DidInitiatePaint(); |
| 610 virtual void DidFlushPaint(); | 610 virtual void DidFlushPaint(); |
| 611 virtual void DidHandleKeyEvent(); | 611 virtual void DidHandleKeyEvent(); |
| 612 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); | 612 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event); |
| 613 virtual bool IsReadyToPaint() const; |
| 613 | 614 |
| 614 #if OS_MACOSX | 615 #if OS_MACOSX |
| 615 virtual void OnSetFocus(bool enable); | 616 virtual void OnSetFocus(bool enable); |
| 616 virtual void OnWasHidden(); | 617 virtual void OnWasHidden(); |
| 617 virtual void OnWasRestored(bool needs_repainting); | 618 virtual void OnWasRestored(bool needs_repainting); |
| 618 #endif | 619 #endif |
| 619 | 620 |
| 620 private: | 621 private: |
| 621 // For unit tests. | 622 // For unit tests. |
| 622 friend class RenderViewTest; | 623 friend class RenderViewTest; |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1346 // ADDING NEW DATA? Please see if it fits appropriately in one of the above | 1347 // ADDING NEW DATA? Please see if it fits appropriately in one of the above |
| 1347 // sections rather than throwing it randomly at the end. If you're adding a | 1348 // sections rather than throwing it randomly at the end. If you're adding a |
| 1348 // bunch of stuff, you should probably create a helper class and put your | 1349 // bunch of stuff, you should probably create a helper class and put your |
| 1349 // data and methods on that to avoid bloating RenderView more. | 1350 // data and methods on that to avoid bloating RenderView more. |
| 1350 // --------------------------------------------------------------------------- | 1351 // --------------------------------------------------------------------------- |
| 1351 | 1352 |
| 1352 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1353 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1353 }; | 1354 }; |
| 1354 | 1355 |
| 1355 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 1356 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |