| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/status_icons/status_icon_menu_model.h" | 5 #include "chrome/browser/status_icons/status_icon_menu_model.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "ui/base/accelerators/accelerator.h" | 9 #include "ui/base/accelerators/accelerator.h" |
| 10 #include "ui/base/l10n/l10n_util.h" | |
| 11 #include "ui/gfx/image/image.h" | 10 #include "ui/gfx/image/image.h" |
| 12 | 11 |
| 13 struct StatusIconMenuModel::ItemState { | 12 struct StatusIconMenuModel::ItemState { |
| 14 ItemState() | 13 ItemState() |
| 15 : checked(false), | 14 : checked(false), |
| 16 enabled(true), | 15 enabled(true), |
| 17 visible(true), | 16 visible(true), |
| 18 is_dynamic(false) {} | 17 is_dynamic(false) {} |
| 19 bool checked; | 18 bool checked; |
| 20 bool enabled; | 19 bool enabled; |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 171 |
| 173 void StatusIconMenuModel::CommandIdHighlighted(int command_id) { | 172 void StatusIconMenuModel::CommandIdHighlighted(int command_id) { |
| 174 if (delegate_) | 173 if (delegate_) |
| 175 delegate_->CommandIdHighlighted(command_id); | 174 delegate_->CommandIdHighlighted(command_id); |
| 176 } | 175 } |
| 177 | 176 |
| 178 void StatusIconMenuModel::ExecuteCommand(int command_id, int event_flags) { | 177 void StatusIconMenuModel::ExecuteCommand(int command_id, int event_flags) { |
| 179 if (delegate_) | 178 if (delegate_) |
| 180 delegate_->ExecuteCommand(command_id, event_flags); | 179 delegate_->ExecuteCommand(command_id, event_flags); |
| 181 } | 180 } |
| OLD | NEW |