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

Side by Side Diff: chrome/browser/ui/views/toolbar/toolbar_button.cc

Issue 499163002: Use qualified path for grit/ui_strings.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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/ui/views/toolbar/toolbar_button.h" 5 #include "chrome/browser/ui/views/toolbar/toolbar_button.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" 8 #include "chrome/browser/ui/views/location_bar/location_bar_view.h"
9 #include "grit/theme_resources.h" 9 #include "grit/theme_resources.h"
10 #include "grit/ui_strings.h"
11 #include "ui/accessibility/ax_view_state.h" 10 #include "ui/accessibility/ax_view_state.h"
12 #include "ui/base/l10n/l10n_util.h" 11 #include "ui/base/l10n/l10n_util.h"
13 #include "ui/base/models/menu_model.h" 12 #include "ui/base/models/menu_model.h"
14 #include "ui/base/theme_provider.h" 13 #include "ui/base/theme_provider.h"
15 #include "ui/gfx/display.h" 14 #include "ui/gfx/display.h"
16 #include "ui/gfx/screen.h" 15 #include "ui/gfx/screen.h"
16 #include "ui/strings/grit/ui_strings.h"
17 #include "ui/views/controls/button/label_button_border.h" 17 #include "ui/views/controls/button/label_button_border.h"
18 #include "ui/views/controls/menu/menu_item_view.h" 18 #include "ui/views/controls/menu/menu_item_view.h"
19 #include "ui/views/controls/menu/menu_model_adapter.h" 19 #include "ui/views/controls/menu/menu_model_adapter.h"
20 #include "ui/views/controls/menu/menu_runner.h" 20 #include "ui/views/controls/menu/menu_runner.h"
21 #include "ui/views/widget/widget.h" 21 #include "ui/views/widget/widget.h"
22 22
23 ToolbarButton::ToolbarButton(views::ButtonListener* listener, 23 ToolbarButton::ToolbarButton(views::ButtonListener* listener,
24 ui::MenuModel* model) 24 ui::MenuModel* model)
25 : views::LabelButton(listener, base::string16()), 25 : views::LabelButton(listener, base::string16()),
26 model_(model), 26 model_(model),
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 // Need to explicitly clear mouse handler so that events get sent 243 // Need to explicitly clear mouse handler so that events get sent
244 // properly after the menu finishes running. If we don't do this, then 244 // properly after the menu finishes running. If we don't do this, then
245 // the first click to other parts of the UI is eaten. 245 // the first click to other parts of the UI is eaten.
246 SetMouseHandler(NULL); 246 SetMouseHandler(NULL);
247 247
248 // Set the state back to normal after the drop down menu is closed. 248 // Set the state back to normal after the drop down menu is closed.
249 if (state_ != STATE_DISABLED) 249 if (state_ != STATE_DISABLED)
250 SetState(STATE_NORMAL); 250 SetState(STATE_NORMAL);
251 } 251 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | chrome/browser/ui/webui/chromeos/login/error_screen_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698