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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 2668833003: DialogBrowserTest implementation to invoke Content settings bubble dialogs. (Closed)
Patch Set: Merged in suggestions from reviewers Created 3 years, 10 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/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index 3f2dc43dd569f30773e1c7f8130dbb77af3509b2..506b5fbc80af5717bc8805690309da174bb19dc1 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -1097,6 +1097,16 @@ bool LocationBarView::GetBookmarkStarVisibility() {
return star_view_->visible();
}
+bool LocationBarView::TestContentSettingImagePressed(size_t index) {
+ if (index >= content_setting_views_.size())
+ return false;
+
+ views::View* image_view = content_setting_views_[index];
+ image_view->OnKeyPressed(
+ ui::KeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_SPACE, ui::EF_NONE));
+ return true;
+}
+
////////////////////////////////////////////////////////////////////////////////
// LocationBarView, private views::View implementation:
@@ -1218,3 +1228,4 @@ void LocationBarView::OnTemplateURLServiceChanged() {
if (omnibox_view_ && omnibox_view_->GetWidget()->IsActive())
ShowFirstRunBubble();
}
+
tapted 2017/02/07 01:23:32 nit: remove blank line

Powered by Google App Engine
This is Rietveld 408576698