| Index: chrome/browser/ui/views/autocomplete/autocomplete_result_view.h
|
| ===================================================================
|
| --- chrome/browser/ui/views/autocomplete/autocomplete_result_view.h (revision 95169)
|
| +++ chrome/browser/ui/views/autocomplete/autocomplete_result_view.h (working copy)
|
| @@ -6,6 +6,8 @@
|
| #define CHROME_BROWSER_UI_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_RESULT_VIEW_H_
|
| #pragma once
|
|
|
| +#include <string>
|
| +
|
| #include "chrome/browser/autocomplete/autocomplete_match.h"
|
| #include "third_party/skia/include/core/SkColor.h"
|
| #include "ui/gfx/font.h"
|
| @@ -19,6 +21,9 @@
|
|
|
| class AutocompleteResultView : public views::View {
|
| public:
|
| + // The result view's class name.
|
| + static const char kViewClassName[];
|
| +
|
| enum ResultViewState {
|
| NORMAL = 0,
|
| SELECTED,
|
| @@ -47,6 +52,13 @@
|
| // model has changed.
|
| void SetMatch(const AutocompleteMatch& match);
|
|
|
| + // Returns the size necessary to show just the icon and an ellipsis.
|
| + gfx::Size GetCollapsedSize();
|
| +
|
| + // views::View:
|
| + virtual gfx::Size GetPreferredSize() OVERRIDE;
|
| + virtual std::string GetClassName() const OVERRIDE;
|
| +
|
| protected:
|
| virtual void PaintMatch(gfx::Canvas* canvas,
|
| const AutocompleteMatch& match,
|
| @@ -100,7 +112,6 @@
|
| void Elide(Runs* runs, int remaining_width) const;
|
|
|
| // views::View:
|
| - virtual gfx::Size GetPreferredSize() OVERRIDE;
|
| virtual void Layout() OVERRIDE;
|
| virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
|
|
|
|
|