Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Side by Side Diff: content/public/browser/web_contents.h

Issue 1205033005: Adds selection expansion support for Contextual Search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed java tests Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698