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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_result_view.h

Issue 10556031: views: Move autocomplete files into omnibox directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/omnibox/omnibox_result_view.h
diff --git a/chrome/browser/ui/views/autocomplete/autocomplete_result_view.h b/chrome/browser/ui/views/omnibox/omnibox_result_view.h
similarity index 86%
rename from chrome/browser/ui/views/autocomplete/autocomplete_result_view.h
rename to chrome/browser/ui/views/omnibox/omnibox_result_view.h
index 29e3d905f6c189192bb09f03093287b80732e2d8..454a99f4f6010444ee74da36552c775f62d7cb4e 100644
--- a/chrome/browser/ui/views/autocomplete/autocomplete_result_view.h
+++ b/chrome/browser/ui/views/omnibox/omnibox_result_view.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_VIEW_H_
+#ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_
+#define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_
#pragma once
#include "chrome/browser/autocomplete/autocomplete_match.h"
@@ -15,14 +15,14 @@
#include "ui/views/controls/image_view.h"
#include "ui/views/view.h"
-class AutocompleteResultViewModel;
+class OmniboxResultViewModel;
namespace gfx {
class Canvas;
}
-class AutocompleteResultView : public views::View,
- private ui::AnimationDelegate {
+class OmniboxResultView : public views::View,
+ private ui::AnimationDelegate {
public:
// Keep these ordered from least dominant (normal) to most dominant
// (selected).
@@ -42,11 +42,11 @@ class AutocompleteResultView : public views::View,
NUM_KINDS
};
- AutocompleteResultView(AutocompleteResultViewModel* model,
- int model_index,
- const gfx::Font& font,
- const gfx::Font& bold_font);
- virtual ~AutocompleteResultView();
+ OmniboxResultView(OmniboxResultViewModel* model,
+ int model_index,
+ const gfx::Font& font,
+ const gfx::Font& bold_font);
+ virtual ~OmniboxResultView();
static SkColor GetColor(ResultViewState state, ColorKind kind);
@@ -138,7 +138,7 @@ class AutocompleteResultView : public views::View,
int minimum_text_vertical_padding_;
// This row's model and model index.
- AutocompleteResultViewModel* model_;
+ OmniboxResultViewModel* model_;
size_t model_index_;
const gfx::Font normal_font_;
@@ -161,7 +161,7 @@ class AutocompleteResultView : public views::View,
scoped_ptr<ui::SlideAnimation> animation_;
- DISALLOW_COPY_AND_ASSIGN(AutocompleteResultView);
+ DISALLOW_COPY_AND_ASSIGN(OmniboxResultView);
};
-#endif // CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_VIEW_H_
+#endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_RESULT_VIEW_H_
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_result_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698