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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 virtual void Redo() = 0; | 385 virtual void Redo() = 0; |
386 virtual void Cut() = 0; | 386 virtual void Cut() = 0; |
387 virtual void Copy() = 0; | 387 virtual void Copy() = 0; |
388 virtual void CopyToFindPboard() = 0; | 388 virtual void CopyToFindPboard() = 0; |
389 virtual void Paste() = 0; | 389 virtual void Paste() = 0; |
390 virtual void PasteAndMatchStyle() = 0; | 390 virtual void PasteAndMatchStyle() = 0; |
391 virtual void Delete() = 0; | 391 virtual void Delete() = 0; |
392 virtual void SelectAll() = 0; | 392 virtual void SelectAll() = 0; |
393 virtual void Unselect() = 0; | 393 virtual void Unselect() = 0; |
394 | 394 |
| 395 // Called to advance the focus to next form control element in |
| 396 // forward/backward direction from current element. |
| 397 virtual void AdvanceFocusInForm(bool forward) = 0; |
| 398 |
395 // Replaces the currently selected word or a word around the cursor. | 399 // Replaces the currently selected word or a word around the cursor. |
396 virtual void Replace(const base::string16& word) = 0; | 400 virtual void Replace(const base::string16& word) = 0; |
397 | 401 |
398 // Replaces the misspelling in the current selection. | 402 // Replaces the misspelling in the current selection. |
399 virtual void ReplaceMisspelling(const base::string16& word) = 0; | 403 virtual void ReplaceMisspelling(const base::string16& word) = 0; |
400 | 404 |
401 // Let the renderer know that the menu has been closed. | 405 // Let the renderer know that the menu has been closed. |
402 virtual void NotifyContextMenuClosed( | 406 virtual void NotifyContextMenuClosed( |
403 const CustomContextMenuContext& context) = 0; | 407 const CustomContextMenuContext& context) = 0; |
404 | 408 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 | 647 |
644 private: | 648 private: |
645 // This interface should only be implemented inside content. | 649 // This interface should only be implemented inside content. |
646 friend class WebContentsImpl; | 650 friend class WebContentsImpl; |
647 WebContents() {} | 651 WebContents() {} |
648 }; | 652 }; |
649 | 653 |
650 } // namespace content | 654 } // namespace content |
651 | 655 |
652 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 656 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |