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

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

Issue 262093014: Test that OmniboxViewViews has opaque background. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apply more feedback Created 6 years, 7 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_view_views.h
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.h b/chrome/browser/ui/views/omnibox/omnibox_view_views.h
index 1b71318cda58998da2eb0e0aacaab87601d412fa..1b3dde9318e604bd0a51add66609680694fed89a 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.h
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.h
@@ -26,6 +26,7 @@ class OmniboxPopupView;
class Profile;
namespace gfx {
+class RenderText;
class SlideAnimation;
}
@@ -33,7 +34,7 @@ namespace ui {
class OSExchangeData;
} // namespace ui
-// Views-implementation of OmniboxView, based on the gtk implementation.
+// Views-implementation of OmniboxView.
class OmniboxViewViews
: public OmniboxView,
public views::Textfield,
@@ -61,6 +62,13 @@ class OmniboxViewViews
// Starts an animation that fades in the entire OmniboxView.
void FadeIn();
+ // Exposes the RenderText for tests.
+#if defined(UNIT_TEST)
+ gfx::RenderText* GetRenderText() {
+ return views::Textfield::GetRenderText();
+ }
+#endif
+
// View:
virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698