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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 | 321 |
322 // Commands ------------------------------------------------------------------ | 322 // Commands ------------------------------------------------------------------ |
323 | 323 |
324 // Stop any pending navigation. | 324 // Stop any pending navigation. |
325 virtual void Stop() = 0; | 325 virtual void Stop() = 0; |
326 | 326 |
327 // Creates a new WebContents with the same state as this one. The returned | 327 // Creates a new WebContents with the same state as this one. The returned |
328 // heap-allocated pointer is owned by the caller. | 328 // heap-allocated pointer is owned by the caller. |
329 virtual WebContents* Clone() = 0; | 329 virtual WebContents* Clone() = 0; |
330 | 330 |
331 // Actions on the focused frame ---------------------------------------------- | 331 // Reloads the focused frame. |
| 332 virtual void ReloadFocusedFrame(bool ignore_cache) = 0; |
332 | 333 |
333 virtual void ReloadFocusedFrame(bool ignore_cache) = 0; | 334 // Editing commands ---------------------------------------------------------- |
| 335 |
| 336 // Replaces the currently selected word or a word around the cursor. |
| 337 virtual void Replace(const base::string16& word) = 0; |
| 338 |
| 339 // Replaces the misspelling in the current selection. |
| 340 virtual void ReplaceMisspelling(const base::string16& word) = 0; |
334 | 341 |
335 // Views and focus ----------------------------------------------------------- | 342 // Views and focus ----------------------------------------------------------- |
336 | 343 |
337 // Focuses the first (last if |reverse| is true) element in the page. | 344 // Focuses the first (last if |reverse| is true) element in the page. |
338 // Invoked when this tab is getting the focus through tab traversal (|reverse| | 345 // Invoked when this tab is getting the focus through tab traversal (|reverse| |
339 // is true when using Shift-Tab). | 346 // is true when using Shift-Tab). |
340 virtual void FocusThroughTabTraversal(bool reverse) = 0; | 347 virtual void FocusThroughTabTraversal(bool reverse) = 0; |
341 | 348 |
342 // Interstitials ------------------------------------------------------------- | 349 // Interstitials ------------------------------------------------------------- |
343 | 350 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 | 515 |
509 private: | 516 private: |
510 // This interface should only be implemented inside content. | 517 // This interface should only be implemented inside content. |
511 friend class WebContentsImpl; | 518 friend class WebContentsImpl; |
512 WebContents() {} | 519 WebContents() {} |
513 }; | 520 }; |
514 | 521 |
515 } // namespace content | 522 } // namespace content |
516 | 523 |
517 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 524 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |