| 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 // Expand the selection in the focused frame by the given amounts. |
| 421 virtual void ExpandSelectionByCharacterOffset(int start_adjust, |
| 422 int end_adjust) = 0; |
| 423 |
| 420 // Replaces the currently selected word or a word around the cursor. | 424 // Replaces the currently selected word or a word around the cursor. |
| 421 virtual void Replace(const base::string16& word) = 0; | 425 virtual void Replace(const base::string16& word) = 0; |
| 422 | 426 |
| 423 // Replaces the misspelling in the current selection. | 427 // Replaces the misspelling in the current selection. |
| 424 virtual void ReplaceMisspelling(const base::string16& word) = 0; | 428 virtual void ReplaceMisspelling(const base::string16& word) = 0; |
| 425 | 429 |
| 426 // Let the renderer know that the menu has been closed. | 430 // Let the renderer know that the menu has been closed. |
| 427 virtual void NotifyContextMenuClosed( | 431 virtual void NotifyContextMenuClosed( |
| 428 const CustomContextMenuContext& context) = 0; | 432 const CustomContextMenuContext& context) = 0; |
| 429 | 433 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 | 679 |
| 676 private: | 680 private: |
| 677 // This interface should only be implemented inside content. | 681 // This interface should only be implemented inside content. |
| 678 friend class WebContentsImpl; | 682 friend class WebContentsImpl; |
| 679 WebContents() {} | 683 WebContents() {} |
| 680 }; | 684 }; |
| 681 | 685 |
| 682 } // namespace content | 686 } // namespace content |
| 683 | 687 |
| 684 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 688 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |