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

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

Issue 11466007: Add new IPC for searchbox to pipe SearchBox NavigateContentWindow calls to the browser. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing Samarth's comments. 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
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_CLIENT_H_ 5 #ifndef CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
6 #define CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ 6 #define CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // strokes. 54 // strokes.
55 virtual void StartCapturingKeyStrokes() = 0; 55 virtual void StartCapturingKeyStrokes() = 0;
56 56
57 // Called when the page wants the browser to stop capturing user key 57 // Called when the page wants the browser to stop capturing user key
58 // strokes. 58 // strokes.
59 virtual void StopCapturingKeyStrokes() = 0; 59 virtual void StopCapturingKeyStrokes() = 0;
60 60
61 // Called when the underlying RenderView crashes. 61 // Called when the underlying RenderView crashes.
62 virtual void RenderViewGone() = 0; 62 virtual void RenderViewGone() = 0;
63 63
64 // Called when the SearchBox wants to commit the page and navigate to the
65 // specified URL.
66 virtual void NavigateToURL(const GURL& url) = 0;
67
64 protected: 68 protected:
65 virtual ~Delegate(); 69 virtual ~Delegate();
66 }; 70 };
67 71
68 // Doesn't take ownership of |delegate|. 72 // Doesn't take ownership of |delegate|.
69 explicit InstantClient(Delegate* delegate); 73 explicit InstantClient(Delegate* delegate);
70 virtual ~InstantClient(); 74 virtual ~InstantClient();
71 75
72 // Sets |contents| as the page to communicate with. |contents| can be NULL, 76 // Sets |contents| as the page to communicate with. |contents| can be NULL,
73 // which effectively stops all communication. 77 // which effectively stops all communication.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 134
131 void SetSuggestions(int page_id, 135 void SetSuggestions(int page_id,
132 const std::vector<InstantSuggestion>& suggestions); 136 const std::vector<InstantSuggestion>& suggestions);
133 void InstantSupportDetermined(int page_id, bool result); 137 void InstantSupportDetermined(int page_id, bool result);
134 void ShowInstantPreview(int page_id, 138 void ShowInstantPreview(int page_id,
135 InstantShownReason reason, 139 InstantShownReason reason,
136 int height, 140 int height,
137 InstantSizeUnits units); 141 InstantSizeUnits units);
138 void StartCapturingKeyStrokes(int page_id); 142 void StartCapturingKeyStrokes(int page_id);
139 void StopCapturingKeyStrokes(int page_id); 143 void StopCapturingKeyStrokes(int page_id);
144 void SearchBoxNavigate(int page_id, const GURL& url);
140 145
141 Delegate* const delegate_; 146 Delegate* const delegate_;
142 147
143 DISALLOW_COPY_AND_ASSIGN(InstantClient); 148 DISALLOW_COPY_AND_ASSIGN(InstantClient);
144 }; 149 };
145 150
146 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_ 151 #endif // CHROME_BROWSER_INSTANT_INSTANT_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/instant/instant_client.cc » ('j') | chrome/browser/instant/instant_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698