Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Side by Side Diff: chrome/renderer/render_view.h

Issue 115468: Only send SelectionChanged events when the selection has actually changed.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/renderer/render_view.cc » ('j') | chrome/renderer/render_view.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/render_view.cc » ('j') | chrome/renderer/render_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698