| OLD | NEW |
| 1 // Copyright (c) 2010 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/chromeos/login/message_bubble.h" | 5 #include "chrome/browser/chromeos/login/message_bubble.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/chromeos/login/helper.h" | 8 #include "chrome/browser/chromeos/login/helper.h" |
| 9 #include "grit/generated_resources.h" | 9 #include "grit/generated_resources.h" |
| 10 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" |
| 11 #include "ui/base/resource/resource_bundle.h" | 11 #include "ui/base/resource/resource_bundle.h" |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 138 |
| 139 void MessageBubble::IsActiveChanged() { | 139 void MessageBubble::IsActiveChanged() { |
| 140 // Active parent instead. | 140 // Active parent instead. |
| 141 if (parent_ && IsActive()) { | 141 if (parent_ && IsActive()) { |
| 142 gtk_window_present_with_time( | 142 gtk_window_present_with_time( |
| 143 GTK_WINDOW(static_cast<WidgetGtk*>(parent_)->GetNativeView()), | 143 GTK_WINDOW(static_cast<WidgetGtk*>(parent_)->GetNativeView()), |
| 144 gtk_get_current_event_time()); | 144 gtk_get_current_event_time()); |
| 145 } | 145 } |
| 146 } | 146 } |
| 147 | 147 |
| 148 void MessageBubble::SetNativeCapture() { | 148 void MessageBubble::SetMouseCapture() { |
| 149 if (grab_enabled_) | 149 if (grab_enabled_) |
| 150 WidgetGtk::SetNativeCapture(); | 150 WidgetGtk::SetMouseCapture(); |
| 151 } | 151 } |
| 152 | 152 |
| 153 void MessageBubble::Close() { | 153 void MessageBubble::Close() { |
| 154 parent_ = NULL; | 154 parent_ = NULL; |
| 155 InfoBubble::Close(); | 155 InfoBubble::Close(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 } // namespace chromeos | 158 } // namespace chromeos |
| OLD | NEW |