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

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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include <wtf/text/WTFString.h> 44 #include <wtf/text/WTFString.h>
45 45
46 namespace WebCore { 46 namespace WebCore {
47 class GraphicsContext; 47 class GraphicsContext;
48 class HTMLInputElement; 48 class HTMLInputElement;
49 class HistoryItem; 49 class HistoryItem;
50 class IntSize; 50 class IntSize;
51 class KURL; 51 class KURL;
52 class Node; 52 class Node;
53 class Range; 53 class Range;
54 class RenderObject;
54 class SubstituteData; 55 class SubstituteData;
55 struct FrameLoadRequest; 56 struct FrameLoadRequest;
56 struct WindowFeatures; 57 struct WindowFeatures;
57 } 58 }
58 59
59 namespace WebKit { 60 namespace WebKit {
60 class ChromePrintContext; 61 class ChromePrintContext;
61 class WebDataSourceImpl; 62 class WebDataSourceImpl;
62 class WebInputElement; 63 class WebInputElement;
63 class WebFrameClient; 64 class WebFrameClient;
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 virtual void replaceMisspelledRange(const WebString&); 182 virtual void replaceMisspelledRange(const WebString&);
182 virtual void removeSpellingMarkers(); 183 virtual void removeSpellingMarkers();
183 virtual bool hasSelection() const; 184 virtual bool hasSelection() const;
184 virtual WebRange selectionRange() const; 185 virtual WebRange selectionRange() const;
185 virtual WebString selectionAsText() const; 186 virtual WebString selectionAsText() const;
186 virtual WebString selectionAsMarkup() const; 187 virtual WebString selectionAsMarkup() const;
187 virtual bool selectWordAroundCaret(); 188 virtual bool selectWordAroundCaret();
188 virtual void selectRange(const WebPoint& base, const WebPoint& extent); 189 virtual void selectRange(const WebPoint& base, const WebPoint& extent);
189 virtual void selectRange(const WebRange&); 190 virtual void selectRange(const WebRange&);
190 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&);
191 virtual int printBegin(const WebPrintParams&, 194 virtual int printBegin(const WebPrintParams&,
192 const WebNode& constrainToNode, 195 const WebNode& constrainToNode,
193 bool* useBrowserOverlays); 196 bool* useBrowserOverlays);
194 virtual float printPage(int pageToPrint, WebCanvas*); 197 virtual float printPage(int pageToPrint, WebCanvas*);
195 virtual float getPrintPageShrink(int page); 198 virtual float getPrintPageShrink(int page);
196 virtual void printEnd(); 199 virtual void printEnd();
197 virtual bool isPrintScalingDisabledForPlugin(const WebNode&); 200 virtual bool isPrintScalingDisabledForPlugin(const WebNode&);
198 virtual bool hasCustomPageSizeStyle(int pageIndex); 201 virtual bool hasCustomPageSizeStyle(int pageIndex);
199 virtual bool isPageBoxVisible(int pageIndex); 202 virtual bool isPageBoxVisible(int pageIndex);
200 virtual void pageSizeAndMarginsInPixels(int pageIndex, 203 virtual void pageSizeAndMarginsInPixels(int pageIndex,
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 // Called by a DeferredScopeStringMatches instance. 397 // Called by a DeferredScopeStringMatches instance.
395 void callScopeStringMatches( 398 void callScopeStringMatches(
396 DeferredScopeStringMatches*, int identifier, const WebString& searchText , 399 DeferredScopeStringMatches*, int identifier, const WebString& searchText ,
397 const WebFindOptions&, bool reset); 400 const WebFindOptions&, bool reset);
398 401
399 // Determines whether to invalidate the content area and scrollbar. 402 // Determines whether to invalidate the content area and scrollbar.
400 void invalidateIfNecessary(); 403 void invalidateIfNecessary();
401 404
402 void loadJavaScriptURL(const WebCore::KURL&); 405 void loadJavaScriptURL(const WebCore::KURL&);
403 406
404 // Returns a hit-tested VisiblePosition for the given point 407 // Returns the VisiblePosition for the given point in the render object.
405 WebCore::VisiblePosition visiblePositionForWindowPoint(const WebPoint&); 408 WebCore::VisiblePosition visiblePositionForWindowPoint(const WebPoint&, WebC ore::RenderObject*);
406 409
407 FrameLoaderClientImpl m_frameLoaderClient; 410 FrameLoaderClientImpl m_frameLoaderClient;
408 411
409 WebFrameClient* m_client; 412 WebFrameClient* m_client;
410 413
411 // A way for the main frame to keep track of which frame has an active 414 // A way for the main frame to keep track of which frame has an active
412 // match. Should be 0 for all other frames. 415 // match. Should be 0 for all other frames.
413 WebFrameImpl* m_currentActiveMatchFrame; 416 WebFrameImpl* m_currentActiveMatchFrame;
414 417
415 // The range of the active match for the current frame. 418 // The range of the active match for the current frame.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 long long m_identifier; 492 long long m_identifier;
490 493
491 // 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
492 // from HistoryItems 495 // from HistoryItems
493 bool m_inSameDocumentHistoryLoad; 496 bool m_inSameDocumentHistoryLoad;
494 }; 497 };
495 498
496 } // namespace WebKit 499 } // namespace WebKit
497 500
498 #endif 501 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698