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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc

Issue 447893003: Test that simulates touch exploration and checks speech on tabs and also the empty bookmark bar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added static text to accessibility private Created 6 years, 4 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view.h ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h" 5 #include "chrome/browser/ui/views/bookmarks/bookmark_bar_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 } 619 }
620 620
621 views::MenuItemView* BookmarkBarView::GetContextMenu() { 621 views::MenuItemView* BookmarkBarView::GetContextMenu() {
622 return bookmark_menu_ ? bookmark_menu_->context_menu() : NULL; 622 return bookmark_menu_ ? bookmark_menu_->context_menu() : NULL;
623 } 623 }
624 624
625 views::MenuItemView* BookmarkBarView::GetDropMenu() { 625 views::MenuItemView* BookmarkBarView::GetDropMenu() {
626 return bookmark_drop_menu_ ? bookmark_drop_menu_->menu() : NULL; 626 return bookmark_drop_menu_ ? bookmark_drop_menu_->menu() : NULL;
627 } 627 }
628 628
629 views::View* BookmarkBarView::GetBookmarkBarInstructionsView() {
630 if (instructions_->visible())
631 return instructions_;
632 return NULL;
633 }
634
629 void BookmarkBarView::StopThrobbing(bool immediate) { 635 void BookmarkBarView::StopThrobbing(bool immediate) {
630 if (!throbbing_view_) 636 if (!throbbing_view_)
631 return; 637 return;
632 638
633 // If not immediate, cycle through 2 more complete cycles. 639 // If not immediate, cycle through 2 more complete cycles.
634 throbbing_view_->StartThrobbing(immediate ? 0 : 4); 640 throbbing_view_->StartThrobbing(immediate ? 0 : 4);
635 throbbing_view_ = NULL; 641 throbbing_view_ = NULL;
636 } 642 }
637 643
638 // static 644 // static
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1957 DCHECK(apps_page_shortcut_); 1963 DCHECK(apps_page_shortcut_);
1958 // Only perform layout if required. 1964 // Only perform layout if required.
1959 bool visible = chrome::ShouldShowAppsShortcutInBookmarkBar( 1965 bool visible = chrome::ShouldShowAppsShortcutInBookmarkBar(
1960 browser_->profile(), browser_->host_desktop_type()); 1966 browser_->profile(), browser_->host_desktop_type());
1961 if (apps_page_shortcut_->visible() == visible) 1967 if (apps_page_shortcut_->visible() == visible)
1962 return; 1968 return;
1963 apps_page_shortcut_->SetVisible(visible); 1969 apps_page_shortcut_->SetVisible(visible);
1964 UpdateBookmarksSeparatorVisibility(); 1970 UpdateBookmarksSeparatorVisibility();
1965 Layout(); 1971 Layout();
1966 } 1972 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view.h ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698