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

Side by Side Diff: chrome/browser/instant/instant_tab.h

Issue 11359198: Implement the Instant extended API startMargin, endMargin, and rtl properties and the onmarginchang… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CHROME_BROWSER_INSTANT_INSTANT_TAB_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_TAB_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_TAB_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_TAB_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 26 matching lines...) Expand all
37 // Calls through to methods of the same name on InstantClient. 37 // Calls through to methods of the same name on InstantClient.
38 void Update(const string16& text, 38 void Update(const string16& text,
39 size_t selection_start, 39 size_t selection_start,
40 size_t selection_end, 40 size_t selection_end,
41 bool verbatim); 41 bool verbatim);
42 void Submit(const string16& text); 42 void Submit(const string16& text);
43 void SendAutocompleteResults( 43 void SendAutocompleteResults(
44 const std::vector<InstantAutocompleteResult>& results); 44 const std::vector<InstantAutocompleteResult>& results);
45 void SetDisplayInstantResults(bool display_instant_results); 45 void SetDisplayInstantResults(bool display_instant_results);
46 void UpOrDownKeyPressed(int count); 46 void UpOrDownKeyPressed(int count);
47 void SetMarginSize(int start, int end);
47 48
48 private: 49 private:
49 // Overridden from InstantClient::Delegate: 50 // Overridden from InstantClient::Delegate:
50 virtual void SetSuggestions( 51 virtual void SetSuggestions(
51 const std::vector<InstantSuggestion>& suggestions) OVERRIDE; 52 const std::vector<InstantSuggestion>& suggestions) OVERRIDE;
52 virtual void InstantSupportDetermined(bool supports_instant) OVERRIDE; 53 virtual void InstantSupportDetermined(bool supports_instant) OVERRIDE;
53 virtual void ShowInstantPreview(InstantShownReason reason, 54 virtual void ShowInstantPreview(InstantShownReason reason,
54 int height, 55 int height,
55 InstantSizeUnits units) OVERRIDE; 56 InstantSizeUnits units) OVERRIDE;
56 virtual void StartCapturingKeyStrokes() OVERRIDE; 57 virtual void StartCapturingKeyStrokes() OVERRIDE;
57 virtual void StopCapturingKeyStrokes() OVERRIDE; 58 virtual void StopCapturingKeyStrokes() OVERRIDE;
58 virtual void RenderViewGone() OVERRIDE; 59 virtual void RenderViewGone() OVERRIDE;
59 60
60 InstantClient client_; 61 InstantClient client_;
61 InstantController* const controller_; 62 InstantController* const controller_;
62 content::WebContents* const contents_; 63 content::WebContents* const contents_;
63 bool supports_instant_; 64 bool supports_instant_;
64 65
65 DISALLOW_COPY_AND_ASSIGN(InstantTab); 66 DISALLOW_COPY_AND_ASSIGN(InstantTab);
66 }; 67 };
67 68
68 #endif // CHROME_BROWSER_INSTANT_INSTANT_TAB_H_ 69 #endif // CHROME_BROWSER_INSTANT_INSTANT_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698