Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 410 virtual void Redo() = 0; | 410 virtual void Redo() = 0; |
| 411 virtual void Cut() = 0; | 411 virtual void Cut() = 0; |
| 412 virtual void Copy() = 0; | 412 virtual void Copy() = 0; |
| 413 virtual void CopyToFindPboard() = 0; | 413 virtual void CopyToFindPboard() = 0; |
| 414 virtual void Paste() = 0; | 414 virtual void Paste() = 0; |
| 415 virtual void PasteAndMatchStyle() = 0; | 415 virtual void PasteAndMatchStyle() = 0; |
| 416 virtual void Delete() = 0; | 416 virtual void Delete() = 0; |
| 417 virtual void SelectAll() = 0; | 417 virtual void SelectAll() = 0; |
| 418 virtual void Unselect() = 0; | 418 virtual void Unselect() = 0; |
| 419 | 419 |
| 420 // Notify the render view host to adjust the expand selection by the given | |
|
Charlie Reis
2015/07/07 17:02:27
nit: Expand the selection in the focused frame by
aurimas (slooooooooow)
2015/07/07 18:18:05
Done
| |
| 421 // amounts. | |
| 422 virtual void ExpandSelectionByCharacterOffset(int start_adjust, | |
| 423 int end_adjust) = 0; | |
| 424 | |
| 420 // Replaces the currently selected word or a word around the cursor. | 425 // Replaces the currently selected word or a word around the cursor. |
| 421 virtual void Replace(const base::string16& word) = 0; | 426 virtual void Replace(const base::string16& word) = 0; |
| 422 | 427 |
| 423 // Replaces the misspelling in the current selection. | 428 // Replaces the misspelling in the current selection. |
| 424 virtual void ReplaceMisspelling(const base::string16& word) = 0; | 429 virtual void ReplaceMisspelling(const base::string16& word) = 0; |
| 425 | 430 |
| 426 // Let the renderer know that the menu has been closed. | 431 // Let the renderer know that the menu has been closed. |
| 427 virtual void NotifyContextMenuClosed( | 432 virtual void NotifyContextMenuClosed( |
| 428 const CustomContextMenuContext& context) = 0; | 433 const CustomContextMenuContext& context) = 0; |
| 429 | 434 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 675 | 680 |
| 676 private: | 681 private: |
| 677 // This interface should only be implemented inside content. | 682 // This interface should only be implemented inside content. |
| 678 friend class WebContentsImpl; | 683 friend class WebContentsImpl; |
| 679 WebContents() {} | 684 WebContents() {} |
| 680 }; | 685 }; |
| 681 | 686 |
| 682 } // namespace content | 687 } // namespace content |
| 683 | 688 |
| 684 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 689 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |