| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |