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

Side by Side Diff: chrome/browser/extensions/extension_toolbar_model.cc

Issue 469973005: Add tests for the BrowserActionsContainer in overflow mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter's 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 | Annotate | Revision Log
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/extensions/extension_toolbar_model.h" 5 #include "chrome/browser/extensions/extension_toolbar_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 highlighted_items_.clear(); 685 highlighted_items_.clear();
686 is_highlighting_ = false; 686 is_highlighting_ = false;
687 if (old_visible_icon_count_ != visible_icon_count_) { 687 if (old_visible_icon_count_ != visible_icon_count_) {
688 SetVisibleIconCount(old_visible_icon_count_); 688 SetVisibleIconCount(old_visible_icon_count_);
689 FOR_EACH_OBSERVER(Observer, observers_, ToolbarVisibleCountChanged()); 689 FOR_EACH_OBSERVER(Observer, observers_, ToolbarVisibleCountChanged());
690 } 690 }
691 FOR_EACH_OBSERVER(Observer, observers_, ToolbarHighlightModeChanged(false)); 691 FOR_EACH_OBSERVER(Observer, observers_, ToolbarHighlightModeChanged(false));
692 } 692 }
693 } 693 }
694 694
695 void ExtensionToolbarModel::SetVisibleIconCountForTest(size_t visible_icons) {
696 SetVisibleIconCount(visible_icons);
697 FOR_EACH_OBSERVER(Observer, observers_, ToolbarVisibleCountChanged());
698 }
699
695 } // namespace extensions 700 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698