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: third_party/WebKit/Source/web/WebLocalFrameImpl.h

Issue 1889053003: Fix InputConnection.deleteSurroundingText() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ReplaceSelectionCommand to delete Created 4 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
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 WebString selectionAsMarkup() const override; 161 WebString selectionAsMarkup() const override;
162 bool selectWordAroundCaret() override; 162 bool selectWordAroundCaret() override;
163 void selectRange(const WebPoint& base, const WebPoint& extent) override; 163 void selectRange(const WebPoint& base, const WebPoint& extent) override;
164 void selectRange(const WebRange&) override; 164 void selectRange(const WebRange&) override;
165 void moveRangeSelectionExtent(const WebPoint&) override; 165 void moveRangeSelectionExtent(const WebPoint&) override;
166 void moveRangeSelection(const WebPoint& base, const WebPoint& extent, WebFra me::TextGranularity = CharacterGranularity) override; 166 void moveRangeSelection(const WebPoint& base, const WebPoint& extent, WebFra me::TextGranularity = CharacterGranularity) override;
167 void moveCaretSelection(const WebPoint&) override; 167 void moveCaretSelection(const WebPoint&) override;
168 bool setEditableSelectionOffsets(int start, int end) override; 168 bool setEditableSelectionOffsets(int start, int end) override;
169 bool setCompositionFromExistingText(int compositionStart, int compositionEnd , const WebVector<WebCompositionUnderline>& underlines) override; 169 bool setCompositionFromExistingText(int compositionStart, int compositionEnd , const WebVector<WebCompositionUnderline>& underlines) override;
170 void extendSelectionAndDelete(int before, int after) override; 170 void extendSelectionAndDelete(int before, int after) override;
171 void deleteSurroundingText(int before, int after) override;
171 void setCaretVisible(bool) override; 172 void setCaretVisible(bool) override;
172 int printBegin(const WebPrintParams&, const WebNode& constrainToNode) overri de; 173 int printBegin(const WebPrintParams&, const WebNode& constrainToNode) overri de;
173 float printPage(int pageToPrint, WebCanvas*) override; 174 float printPage(int pageToPrint, WebCanvas*) override;
174 float getPrintPageShrink(int page) override; 175 float getPrintPageShrink(int page) override;
175 void printEnd() override; 176 void printEnd() override;
176 bool isPrintScalingDisabledForPlugin(const WebNode&) override; 177 bool isPrintScalingDisabledForPlugin(const WebNode&) override;
177 bool getPrintPresetOptionsForPlugin(const WebNode&, WebPrintPresetOptions*) override; 178 bool getPrintPresetOptionsForPlugin(const WebNode&, WebPrintPresetOptions*) override;
178 bool hasCustomPageSizeStyle(int pageIndex) override; 179 bool hasCustomPageSizeStyle(int pageIndex) override;
179 bool isPageBoxVisible(int pageIndex) override; 180 bool isPageBoxVisible(int pageIndex) override;
180 void pageSizeAndMarginsInPixels( 181 void pageSizeAndMarginsInPixels(
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 // Accomplish that by keeping a self-referential Persistent<>. It is 394 // Accomplish that by keeping a self-referential Persistent<>. It is
394 // cleared upon close(). 395 // cleared upon close().
395 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; 396 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive;
396 }; 397 };
397 398
398 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 399 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
399 400
400 } // namespace blink 401 } // namespace blink
401 402
402 #endif 403 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698