Chromium Code Reviews| Index: ui/views/bubble/bubble_delegate.cc |
| diff --git a/ui/views/bubble/bubble_delegate.cc b/ui/views/bubble/bubble_delegate.cc |
| index bffe75541aae3dbad86efea2fdf1fa34f84eabce..c81ad646aa61675198c365186642bf2d04ebdbec 100644 |
| --- a/ui/views/bubble/bubble_delegate.cc |
| +++ b/ui/views/bubble/bubble_delegate.cc |
| @@ -2,12 +2,19 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| +#include <vector> |
| + |
| #include "ui/views/bubble/bubble_delegate.h" |
| #include "ui/base/animation/slide_animation.h" |
| #include "ui/views/bubble/bubble_frame_view.h" |
| #include "views/widget/widget.h" |
| +#if defined(OS_CHROMEOS) && defined(TOOLKIT_USES_GTK) |
| +#include "chrome/browser/chromeos/legacy_window_manager/wm_ipc.h" |
| +#include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" |
| +#endif |
| + |
| // The duration of the fade animation in milliseconds. |
| static const int kHideFadeDurationMS = 200; |
| @@ -27,6 +34,16 @@ Widget* CreateBubbleWidget(BubbleDelegateView* bubble, Widget* parent) { |
| bubble_params.transparent = false; |
| #endif |
| bubble_widget->Init(bubble_params); |
| +#if defined(OS_CHROMEOS) && defined(TOOLKIT_USES_GTK) |
| + { |
| + std::vector<int> params; |
| + params.push_back(bubble->show_while_screen_is_locked()); |
|
msw
2011/11/20 10:30:44
Do we still need to call SetWindowType when (!bubb
alicet1
2011/11/20 16:21:45
the old code does.
|
| + chromeos::WmIpc::instance()->SetWindowType( |
| + bubble_widget->GetNativeView(), |
| + chromeos::WM_IPC_WINDOW_CHROME_INFO_BUBBLE, |
| + ¶ms); |
| + } |
| +#endif |
| return bubble_widget; |
| } |
| @@ -79,7 +96,8 @@ BubbleDelegateView::BubbleDelegateView() |
| arrow_location_(BubbleBorder::TOP_LEFT), |
| color_(SK_ColorWHITE), |
| border_widget_(NULL), |
| - use_focusless_(false) { |
| + use_focusless_(false), |
| + show_while_screen_is_locked_(false) { |
| set_background(views::Background::CreateSolidBackground(color_)); |
| AddAccelerator(ui::Accelerator(ui::VKEY_ESCAPE, 0)); |
| } |