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

Side by Side Diff: chrome/renderer/searchbox.cc

Issue 6750018: Cleanup: Stop creating RenderViewObservers from chrome/ in RenderViewer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: printPage -> PrintPage Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/searchbox.h ('k') | chrome/renderer/searchbox_extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/renderer/searchbox.h" 5 #include "chrome/renderer/searchbox.h"
6 6
7 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
8 #include "chrome/renderer/searchbox_extension.h" 8 #include "chrome/renderer/searchbox_extension.h"
9 #include "content/renderer/render_view.h" 9 #include "content/renderer/render_view.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
11 11
12 using WebKit::WebView; 12 using WebKit::WebView;
13 13
14 SearchBox::SearchBox(RenderView* render_view) 14 SearchBox::SearchBox(RenderView* render_view)
15 : RenderViewObserver(render_view), 15 : RenderViewObserver(render_view),
16 RenderViewObserverTracker<SearchBox>(render_view),
16 verbatim_(false), 17 verbatim_(false),
17 selection_start_(0), 18 selection_start_(0),
18 selection_end_(0) { 19 selection_end_(0) {
19 } 20 }
20 21
21 SearchBox::~SearchBox() { 22 SearchBox::~SearchBox() {
22 } 23 }
23 24
24 void SearchBox::SetSuggestions(const std::vector<std::string>& suggestions, 25 void SearchBox::SetSuggestions(const std::vector<std::string>& suggestions,
25 InstantCompleteBehavior behavior) { 26 InstantCompleteBehavior behavior) {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 int selection_end) { 89 int selection_end) {
89 value_ = value; 90 value_ = value;
90 verbatim_ = verbatim; 91 verbatim_ = verbatim;
91 selection_start_ = selection_start; 92 selection_start_ = selection_start;
92 selection_end_ = selection_end; 93 selection_end_ = selection_end;
93 bool result = extensions_v8::SearchBoxExtension::PageSupportsInstant( 94 bool result = extensions_v8::SearchBoxExtension::PageSupportsInstant(
94 render_view()->webview()->mainFrame()); 95 render_view()->webview()->mainFrame());
95 render_view()->Send(new ViewHostMsg_InstantSupportDetermined( 96 render_view()->Send(new ViewHostMsg_InstantSupportDetermined(
96 render_view()->routing_id(), render_view()->page_id(), result)); 97 render_view()->routing_id(), render_view()->page_id(), result));
97 } 98 }
OLDNEW
« no previous file with comments | « chrome/renderer/searchbox.h ('k') | chrome/renderer/searchbox_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698