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/ui/gtk/reload_button_gtk.h" | 5 #include "chrome/browser/ui/gtk/reload_button_gtk.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/message_loop.h" |
11 #include "chrome/app/chrome_command_ids.h" | 12 #include "chrome/app/chrome_command_ids.h" |
12 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
13 #include "chrome/browser/ui/browser_commands.h" | 14 #include "chrome/browser/ui/browser_commands.h" |
14 #include "chrome/browser/ui/gtk/accelerators_gtk.h" | 15 #include "chrome/browser/ui/gtk/accelerators_gtk.h" |
15 #include "chrome/browser/ui/gtk/event_utils.h" | 16 #include "chrome/browser/ui/gtk/event_utils.h" |
16 #include "chrome/browser/ui/gtk/gtk_chrome_button.h" | 17 #include "chrome/browser/ui/gtk/gtk_chrome_button.h" |
17 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 18 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
18 #include "chrome/browser/ui/gtk/gtk_util.h" | 19 #include "chrome/browser/ui/gtk/gtk_util.h" |
19 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" | 20 #include "chrome/browser/ui/gtk/location_bar_view_gtk.h" |
20 #include "chrome/common/chrome_notification_types.h" | 21 #include "chrome/common/chrome_notification_types.h" |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 bool ReloadButtonGtk::ReloadMenuEnabled() { | 454 bool ReloadButtonGtk::ReloadMenuEnabled() { |
454 if (!browser_) | 455 if (!browser_) |
455 return false; | 456 return false; |
456 return chrome::IsDebuggerAttachedToCurrentTab(browser_); | 457 return chrome::IsDebuggerAttachedToCurrentTab(browser_); |
457 } | 458 } |
458 | 459 |
459 void ReloadButtonGtk::ClearCache() { | 460 void ReloadButtonGtk::ClearCache() { |
460 if (browser_) | 461 if (browser_) |
461 chrome::ClearCache(browser_); | 462 chrome::ClearCache(browser_); |
462 } | 463 } |
463 | |
OLD | NEW |