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

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

Issue 10825304: Creating a new directory chrome/renderer/searchbox and moving appropriate code to it. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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 #include "chrome/renderer/searchbox.h" 5 #include "chrome/renderer/searchbox/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/searchbox_extension.h"
9 #include "content/public/renderer/render_view.h" 9 #include "content/public/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 SearchBox::SearchBox(content::RenderView* render_view) 12 SearchBox::SearchBox(content::RenderView* render_view)
13 : content::RenderViewObserver(render_view), 13 : content::RenderViewObserver(render_view),
14 content::RenderViewObserverTracker<SearchBox>(render_view), 14 content::RenderViewObserverTracker<SearchBox>(render_view),
15 verbatim_(false), 15 verbatim_(false),
16 selection_start_(0), 16 selection_start_(0),
17 selection_end_(0) { 17 selection_end_(0) {
18 } 18 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 render_view()->GetRoutingID(), render_view()->GetPageId(), result)); 110 render_view()->GetRoutingID(), render_view()->GetPageId(), result));
111 } 111 }
112 } 112 }
113 113
114 void SearchBox::Reset() { 114 void SearchBox::Reset() {
115 value_.clear(); 115 value_.clear();
116 verbatim_ = false; 116 verbatim_ = false;
117 selection_start_ = selection_end_ = 0; 117 selection_start_ = selection_end_ = 0;
118 rect_ = gfx::Rect(); 118 rect_ = gfx::Rect();
119 } 119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698