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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.cc

Issue 8632001: Removed TOUCH_UI (mostly constants) from chrome/browser/ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/omnibox/omnibox_view_views.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
index a49bcc21bc94e539ac70275688f7b0603390cd00..8defd9353696ce0472533975883a35e28ff1e05a 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -12,6 +12,7 @@
#include "chrome/browser/autocomplete/autocomplete_match.h"
#include "chrome/browser/autocomplete/autocomplete_popup_model.h"
#include "chrome/browser/command_updater.h"
+#include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "chrome/common/chrome_notification_types.h"
#include "content/browser/tab_contents/tab_contents.h"
@@ -31,12 +32,6 @@
#include "views/border.h"
#include "views/controls/textfield/textfield.h"
-#if defined(TOUCH_UI)
-#include "chrome/browser/ui/views/autocomplete/touch_autocomplete_popup_contents_view.h"
-#else
-#include "chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h"
-#endif
-
#if defined(OS_WIN)
#include "chrome/browser/ui/views/omnibox/omnibox_view_win.h"
#endif
@@ -186,11 +181,6 @@ void OmniboxViewViews::Init() {
textfield_->SetController(this);
textfield_->SetTextInputType(ui::TEXT_INPUT_TYPE_URL);
-#if defined(TOUCH_UI)
- textfield_->SetFont(ui::ResourceBundle::GetSharedInstance().GetFont(
- ResourceBundle::LargeFont));
-#endif
-
if (popup_window_mode_)
textfield_->SetReadOnly(true);
@@ -731,11 +721,7 @@ string16 OmniboxViewViews::GetSelectedText() const {
AutocompletePopupView* OmniboxViewViews::CreatePopupView(
View* location_bar) {
-#if defined(TOUCH_UI)
- typedef TouchAutocompletePopupContentsView AutocompleteContentsView;
-#else
typedef AutocompletePopupContentsView AutocompleteContentsView;
-#endif
return new AutocompleteContentsView(gfx::Font(), this, model_.get(),
location_bar);
}
« no previous file with comments | « chrome/browser/ui/views/notifications/balloon_view_host.cc ('k') | chrome/browser/ui/views/simple_message_box_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698