| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 // it's for the selection clipboard. | 791 // it's for the selection clipboard. |
| 792 std::string selection_text_; | 792 std::string selection_text_; |
| 793 | 793 |
| 794 // Cache the preferred width of the page in order to prevent sending the IPC | 794 // Cache the preferred width of the page in order to prevent sending the IPC |
| 795 // when layout() recomputes it but it doesn't actually change. | 795 // when layout() recomputes it but it doesn't actually change. |
| 796 int preferred_width_; | 796 int preferred_width_; |
| 797 | 797 |
| 798 // If true, we send IPC messages when the preferred width changes. | 798 // If true, we send IPC messages when the preferred width changes. |
| 799 bool send_preferred_width_changes_; | 799 bool send_preferred_width_changes_; |
| 800 | 800 |
| 801 // The text selection the last time DidChangeSelection got called. |
| 802 std::string last_selection_; |
| 803 |
| 801 DISALLOW_COPY_AND_ASSIGN(RenderView); | 804 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 802 }; | 805 }; |
| 803 | 806 |
| 804 #endif // CHROME_RENDERER_RENDER_VIEW_H_ | 807 #endif // CHROME_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |