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

Unified Diff: chrome/browser/ui/views/autocomplete/autocomplete_result_view.h

Issue 6731036: Enabled pressing TAB to cycle through the Omnibox results. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 5 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/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;

Powered by Google App Engine
This is Rietveld 408576698