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/views/location_bar/zoom_bubble_view.h" | 5 #include "chrome/browser/ui/views/location_bar/zoom_bubble_view.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" |
8 #include "chrome/browser/chrome_page_zoom.h" | 9 #include "chrome/browser/chrome_page_zoom.h" |
9 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_finder.h" | 11 #include "chrome/browser/ui/browser_finder.h" |
11 #include "chrome/browser/ui/browser_window.h" | 12 #include "chrome/browser/ui/browser_window.h" |
12 #include "chrome/browser/ui/views/frame/browser_view.h" | 13 #include "chrome/browser/ui/views/frame/browser_view.h" |
13 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 14 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
14 #include "chrome/browser/ui/views/location_bar/zoom_view.h" | 15 #include "chrome/browser/ui/views/location_bar/zoom_view.h" |
15 #include "chrome/browser/ui/zoom/zoom_controller.h" | 16 #include "chrome/browser/ui/zoom/zoom_controller.h" |
16 #include "chrome/common/chrome_notification_types.h" | |
17 #include "content/public/browser/notification_source.h" | 17 #include "content/public/browser/notification_source.h" |
18 #include "content/public/browser/web_contents_view.h" | 18 #include "content/public/browser/web_contents_view.h" |
19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 #include "ui/base/resource/resource_bundle.h" | 21 #include "ui/base/resource/resource_bundle.h" |
22 #include "ui/views/controls/button/label_button.h" | 22 #include "ui/views/controls/button/label_button.h" |
23 #include "ui/views/controls/separator.h" | 23 #include "ui/views/controls/separator.h" |
24 #include "ui/views/layout/box_layout.h" | 24 #include "ui/views/layout/box_layout.h" |
25 #include "ui/views/layout/layout_constants.h" | 25 #include "ui/views/layout/layout_constants.h" |
26 #include "ui/views/widget/widget.h" | 26 #include "ui/views/widget/widget.h" |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 void ZoomBubbleView::OnImmersiveModeControllerDestroyed() { | 242 void ZoomBubbleView::OnImmersiveModeControllerDestroyed() { |
243 immersive_mode_controller_ = NULL; | 243 immersive_mode_controller_ = NULL; |
244 } | 244 } |
245 | 245 |
246 void ZoomBubbleView::WindowClosing() { | 246 void ZoomBubbleView::WindowClosing() { |
247 // |zoom_bubble_| can be a new bubble by this point (as Close(); doesn't | 247 // |zoom_bubble_| can be a new bubble by this point (as Close(); doesn't |
248 // call this right away). Only set to NULL when it's this bubble. | 248 // call this right away). Only set to NULL when it's this bubble. |
249 if (zoom_bubble_ == this) | 249 if (zoom_bubble_ == this) |
250 zoom_bubble_ = NULL; | 250 zoom_bubble_ = NULL; |
251 } | 251 } |
OLD | NEW |