| 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/ui/views/toolbar/reload_button.h" |    5 #include "chrome/browser/ui/views/toolbar/reload_button.h" | 
|    6  |    6  | 
|    7 #include <stddef.h> |    7 #include <stddef.h> | 
|    8  |    8  | 
|    9 #include "base/macros.h" |    9 #include "base/macros.h" | 
|   10 #include "base/strings/utf_string_conversions.h" |   10 #include "base/strings/utf_string_conversions.h" | 
|   11 #include "chrome/app/chrome_command_ids.h" |   11 #include "chrome/app/chrome_command_ids.h" | 
|   12 #include "chrome/app/vector_icons/vector_icons.h" |   12 #include "chrome/app/vector_icons/vector_icons.h" | 
|   13 #include "chrome/browser/command_updater.h" |   13 #include "chrome/browser/command_updater.h" | 
|   14 #include "chrome/browser/themes/theme_properties.h" |   14 #include "chrome/browser/themes/theme_properties.h" | 
|   15 #include "chrome/grit/generated_resources.h" |   15 #include "chrome/grit/generated_resources.h" | 
|   16 #include "chrome/grit/theme_resources.h" |  | 
|   17 #include "ui/base/l10n/l10n_util.h" |   16 #include "ui/base/l10n/l10n_util.h" | 
|   18 #include "ui/base/models/simple_menu_model.h" |   17 #include "ui/base/models/simple_menu_model.h" | 
|   19 #include "ui/base/theme_provider.h" |   18 #include "ui/base/theme_provider.h" | 
|   20 #include "ui/base/window_open_disposition.h" |   19 #include "ui/base/window_open_disposition.h" | 
|   21 #include "ui/gfx/paint_vector_icon.h" |   20 #include "ui/gfx/paint_vector_icon.h" | 
|   22 #include "ui/views/metrics.h" |   21 #include "ui/views/metrics.h" | 
|   23 #include "ui/views/widget/widget.h" |   22 #include "ui/views/widget/widget.h" | 
|   24  |   23  | 
|   25  |   24  | 
|   26 namespace { |   25 namespace { | 
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  249  |  248  | 
|  250 void ReloadButton::OnDoubleClickTimer() { |  249 void ReloadButton::OnDoubleClickTimer() { | 
|  251   if (!IsMenuShowing()) |  250   if (!IsMenuShowing()) | 
|  252     ChangeMode(intended_mode_, false); |  251     ChangeMode(intended_mode_, false); | 
|  253 } |  252 } | 
|  254  |  253  | 
|  255 void ReloadButton::OnStopToReloadTimer() { |  254 void ReloadButton::OnStopToReloadTimer() { | 
|  256   DCHECK(!IsMenuShowing()); |  255   DCHECK(!IsMenuShowing()); | 
|  257   ChangeMode(intended_mode_, true); |  256   ChangeMode(intended_mode_, true); | 
|  258 } |  257 } | 
| OLD | NEW |