OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |