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

Side by Side Diff: chrome/browser/status_icons/status_icon_menu_model.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more 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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698