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 // Adjust the selection starting and ending points in the focused frame by |
| 421 // the given amounts. A negative amount moves the selection towards the |
| 422 // beginning of the document, a positive amount moves the selection towards |
| 423 // the end of the document. |
| 424 virtual void AdjustSelectionByCharacterOffset(int start_adjust, |
| 425 int end_adjust) = 0; |
| 426 |
420 // Replaces the currently selected word or a word around the cursor. | 427 // Replaces the currently selected word or a word around the cursor. |
421 virtual void Replace(const base::string16& word) = 0; | 428 virtual void Replace(const base::string16& word) = 0; |
422 | 429 |
423 // Replaces the misspelling in the current selection. | 430 // Replaces the misspelling in the current selection. |
424 virtual void ReplaceMisspelling(const base::string16& word) = 0; | 431 virtual void ReplaceMisspelling(const base::string16& word) = 0; |
425 | 432 |
426 // Let the renderer know that the menu has been closed. | 433 // Let the renderer know that the menu has been closed. |
427 virtual void NotifyContextMenuClosed( | 434 virtual void NotifyContextMenuClosed( |
428 const CustomContextMenuContext& context) = 0; | 435 const CustomContextMenuContext& context) = 0; |
429 | 436 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 | 687 |
681 private: | 688 private: |
682 // This interface should only be implemented inside content. | 689 // This interface should only be implemented inside content. |
683 friend class WebContentsImpl; | 690 friend class WebContentsImpl; |
684 WebContents() {} | 691 WebContents() {} |
685 }; | 692 }; |
686 | 693 |
687 } // namespace content | 694 } // namespace content |
688 | 695 |
689 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 696 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |