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

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: Move to method of VisibleSelection, fix style nits 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 virtual void replaceMisspelledRange(const WebString&); 182 virtual void replaceMisspelledRange(const WebString&);
183 virtual void removeSpellingMarkers(); 183 virtual void removeSpellingMarkers();
184 virtual bool hasSelection() const; 184 virtual bool hasSelection() const;
185 virtual WebRange selectionRange() const; 185 virtual WebRange selectionRange() const;
186 virtual WebString selectionAsText() const; 186 virtual WebString selectionAsText() const;
187 virtual WebString selectionAsMarkup() const; 187 virtual WebString selectionAsMarkup() const;
188 virtual bool selectWordAroundCaret(); 188 virtual bool selectWordAroundCaret();
189 virtual void selectRange(const WebPoint& base, const WebPoint& extent); 189 virtual void selectRange(const WebPoint& base, const WebPoint& extent);
190 virtual void selectRange(const WebRange&); 190 virtual void selectRange(const WebRange&);
191 virtual void moveCaretSelectionTowardsWindowPoint(const WebPoint&); 191 virtual void moveCaretSelectionTowardsWindowPoint(const WebPoint&);
192 virtual void moveRangeSelection(const WebPoint& base, const WebPoint& extent );
193 virtual void moveCaretSelection(const WebPoint&);
192 virtual int printBegin(const WebPrintParams&, 194 virtual int printBegin(const WebPrintParams&,
193 const WebNode& constrainToNode, 195 const WebNode& constrainToNode,
194 bool* useBrowserOverlays); 196 bool* useBrowserOverlays);
195 virtual float printPage(int pageToPrint, WebCanvas*); 197 virtual float printPage(int pageToPrint, WebCanvas*);
196 virtual float getPrintPageShrink(int page); 198 virtual float getPrintPageShrink(int page);
197 virtual void printEnd(); 199 virtual void printEnd();
198 virtual bool isPrintScalingDisabledForPlugin(const WebNode&); 200 virtual bool isPrintScalingDisabledForPlugin(const WebNode&);
199 virtual bool hasCustomPageSizeStyle(int pageIndex); 201 virtual bool hasCustomPageSizeStyle(int pageIndex);
200 virtual bool isPageBoxVisible(int pageIndex); 202 virtual bool isPageBoxVisible(int pageIndex);
201 virtual void pageSizeAndMarginsInPixels(int pageIndex, 203 virtual void pageSizeAndMarginsInPixels(int pageIndex,
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 long long m_identifier; 492 long long m_identifier;
491 493
492 // Ensure we don't overwrite valid history data during same document loads 494 // Ensure we don't overwrite valid history data during same document loads
493 // from HistoryItems 495 // from HistoryItems
494 bool m_inSameDocumentHistoryLoad; 496 bool m_inSameDocumentHistoryLoad;
495 }; 497 };
496 498
497 } // namespace WebKit 499 } // namespace WebKit
498 500
499 #endif 501 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698