OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/views/browser_bubble.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "chrome/browser/views/frame/browser_view.h" | 9 #include "chrome/browser/ui/views/frame/browser_view.h" |
10 #include "views/widget/widget_gtk.h" | 10 #include "views/widget/widget_gtk.h" |
11 #include "views/window/window.h" | 11 #include "views/window/window.h" |
12 | 12 |
13 #if defined(OS_CHROMEOS) | 13 #if defined(OS_CHROMEOS) |
14 #include "chrome/browser/chromeos/wm_ipc.h" | 14 #include "chrome/browser/chromeos/wm_ipc.h" |
15 #include "third_party/cros/chromeos_wm_ipc_enums.h" | 15 #include "third_party/cros/chromeos_wm_ipc_enums.h" |
16 #endif | 16 #endif |
17 | 17 |
18 using std::vector; | 18 using std::vector; |
19 | 19 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 visible_ = true; | 119 visible_ = true; |
120 } | 120 } |
121 | 121 |
122 void BrowserBubble::Hide() { | 122 void BrowserBubble::Hide() { |
123 if (!visible_) | 123 if (!visible_) |
124 return; | 124 return; |
125 views::WidgetGtk* pop = static_cast<views::WidgetGtk*>(popup_); | 125 views::WidgetGtk* pop = static_cast<views::WidgetGtk*>(popup_); |
126 pop->Hide(); | 126 pop->Hide(); |
127 visible_ = false; | 127 visible_ = false; |
128 } | 128 } |
OLD | NEW |