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

Side by Side Diff: Source/WebKit/chromium/src/WebFrameImpl.h

Issue 15017002: WebFrame::selectRange and moveCaret should behave like mouse selection (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 virtual void replaceMisspelledRange(const WebString&); 181 virtual void replaceMisspelledRange(const WebString&);
182 virtual void removeSpellingMarkers(); 182 virtual void removeSpellingMarkers();
183 virtual bool hasSelection() const; 183 virtual bool hasSelection() const;
184 virtual WebRange selectionRange() const; 184 virtual WebRange selectionRange() const;
185 virtual WebString selectionAsText() const; 185 virtual WebString selectionAsText() const;
186 virtual WebString selectionAsMarkup() const; 186 virtual WebString selectionAsMarkup() const;
187 virtual bool selectWordAroundCaret(); 187 virtual bool selectWordAroundCaret();
188 virtual void selectRange(const WebPoint& base, const WebPoint& extent); 188 virtual void selectRange(const WebPoint& base, const WebPoint& extent);
189 virtual void selectRange(const WebRange&); 189 virtual void selectRange(const WebRange&);
190 virtual void moveCaretSelectionTowardsWindowPoint(const WebPoint&); 190 virtual void moveCaretSelectionTowardsWindowPoint(const WebPoint&);
191 virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent );
192 virtual void moveCaretSelection(const WebPoint&);
191 virtual int printBegin(const WebPrintParams&, 193 virtual int printBegin(const WebPrintParams&,
192 const WebNode& constrainToNode, 194 const WebNode& constrainToNode,
193 bool* useBrowserOverlays); 195 bool* useBrowserOverlays);
194 virtual float printPage(int pageToPrint, WebCanvas*); 196 virtual float printPage(int pageToPrint, WebCanvas*);
195 virtual float getPrintPageShrink(int page); 197 virtual float getPrintPageShrink(int page);
196 virtual void printEnd(); 198 virtual void printEnd();
197 virtual bool isPrintScalingDisabledForPlugin(const WebNode&); 199 virtual bool isPrintScalingDisabledForPlugin(const WebNode&);
198 virtual bool hasCustomPageSizeStyle(int pageIndex); 200 virtual bool hasCustomPageSizeStyle(int pageIndex);
199 virtual bool isPageBoxVisible(int pageIndex); 201 virtual bool isPageBoxVisible(int pageIndex);
200 virtual void pageSizeAndMarginsInPixels(int pageIndex, 202 virtual void pageSizeAndMarginsInPixels(int pageIndex,
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 long long m_identifier; 491 long long m_identifier;
490 492
491 // Ensure we don't overwrite valid history data during same document loads 493 // Ensure we don't overwrite valid history data during same document loads
492 // from HistoryItems 494 // from HistoryItems
493 bool m_inSameDocumentHistoryLoad; 495 bool m_inSameDocumentHistoryLoad;
494 }; 496 };
495 497
496 } // namespace WebKit 498 } // namespace WebKit
497 499
498 #endif 500 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698