OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/views/browser_bubble.h" | 5 #include "chrome/browser/views/browser_bubble.h" |
6 | 6 |
7 #include "chrome/browser/views/frame/browser_view.h" | 7 #include "chrome/browser/views/frame/browser_view.h" |
8 #include "views/widget/widget_gtk.h" | 8 #include "views/widget/widget_gtk.h" |
9 #include "views/window/window.h" | 9 #include "views/window/window.h" |
10 | 10 |
11 #if defined(OS_CHROMEOS) | 11 #if defined(OS_CHROMEOS) |
12 #include "chrome/browser/chromeos/wm_ipc.h" | 12 #include "chrome/browser/chromeos/wm_ipc.h" |
13 #include "cros/chromeos_wm_ipc_enums.h" | 13 #include "third_party/cros/chromeos_wm_ipc_enums.h" |
14 #endif | 14 #endif |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 class BubbleWidget : public views::WidgetGtk { | 18 class BubbleWidget : public views::WidgetGtk { |
19 public: | 19 public: |
20 explicit BubbleWidget(BrowserBubble* bubble) | 20 explicit BubbleWidget(BrowserBubble* bubble) |
21 : views::WidgetGtk(views::WidgetGtk::TYPE_WINDOW), | 21 : views::WidgetGtk(views::WidgetGtk::TYPE_WINDOW), |
22 bubble_(bubble) { | 22 bubble_(bubble) { |
23 } | 23 } |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 visible_ = true; | 111 visible_ = true; |
112 } | 112 } |
113 | 113 |
114 void BrowserBubble::Hide() { | 114 void BrowserBubble::Hide() { |
115 if (!visible_) | 115 if (!visible_) |
116 return; | 116 return; |
117 views::WidgetGtk* pop = static_cast<views::WidgetGtk*>(popup_); | 117 views::WidgetGtk* pop = static_cast<views::WidgetGtk*>(popup_); |
118 pop->Hide(); | 118 pop->Hide(); |
119 visible_ = false; | 119 visible_ = false; |
120 } | 120 } |
OLD | NEW |