| OLD | NEW |
| 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 #include "chrome/renderer/searchbox/searchbox.h" | 5 #include "chrome/renderer/searchbox/searchbox.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/string_split.h" | 11 #include "base/strings/string_split.h" |
| 12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
| 16 #include "chrome/common/omnibox_focus_state.h" | |
| 17 #include "chrome/common/render_messages.h" | 16 #include "chrome/common/render_messages.h" |
| 18 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 19 #include "chrome/renderer/searchbox/searchbox_extension.h" | 18 #include "chrome/renderer/searchbox/searchbox_extension.h" |
| 20 #include "components/favicon_base/fallback_icon_url_parser.h" | 19 #include "components/favicon_base/fallback_icon_url_parser.h" |
| 21 #include "components/favicon_base/favicon_types.h" | 20 #include "components/favicon_base/favicon_types.h" |
| 22 #include "components/favicon_base/favicon_url_parser.h" | 21 #include "components/favicon_base/favicon_url_parser.h" |
| 23 #include "components/favicon_base/large_icon_url_parser.h" | 22 #include "components/favicon_base/large_icon_url_parser.h" |
| 23 #include "components/omnibox/common/omnibox_focus_state.h" |
| 24 #include "content/public/renderer/render_frame.h" | 24 #include "content/public/renderer/render_frame.h" |
| 25 #include "content/public/renderer/render_view.h" | 25 #include "content/public/renderer/render_view.h" |
| 26 #include "net/base/escape.h" | 26 #include "net/base/escape.h" |
| 27 #include "third_party/WebKit/public/web/WebDocument.h" | 27 #include "third_party/WebKit/public/web/WebDocument.h" |
| 28 #include "third_party/WebKit/public/web/WebFrame.h" | 28 #include "third_party/WebKit/public/web/WebFrame.h" |
| 29 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 29 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 30 #include "third_party/WebKit/public/web/WebPerformance.h" | 30 #include "third_party/WebKit/public/web/WebPerformance.h" |
| 31 #include "third_party/WebKit/public/web/WebView.h" | 31 #include "third_party/WebKit/public/web/WebView.h" |
| 32 #include "url/gurl.h" | 32 #include "url/gurl.h" |
| 33 | 33 |
| (...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 | 557 |
| 558 void SearchBox::Reset() { | 558 void SearchBox::Reset() { |
| 559 query_.clear(); | 559 query_.clear(); |
| 560 embedded_search_request_params_ = EmbeddedSearchRequestParams(); | 560 embedded_search_request_params_ = EmbeddedSearchRequestParams(); |
| 561 suggestion_ = InstantSuggestion(); | 561 suggestion_ = InstantSuggestion(); |
| 562 start_margin_ = 0; | 562 start_margin_ = 0; |
| 563 is_focused_ = false; | 563 is_focused_ = false; |
| 564 is_key_capture_enabled_ = false; | 564 is_key_capture_enabled_ = false; |
| 565 theme_info_ = ThemeBackgroundInfo(); | 565 theme_info_ = ThemeBackgroundInfo(); |
| 566 } | 566 } |
| OLD | NEW |