Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: chrome/browser/chromeos/login/message_bubble.cc

Issue 6756043: Consolidate Widget Event code, other cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chromeos/login/message_bubble.h ('k') | ui/views/widget/native_widget_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/message_bubble.h ('k') | ui/views/widget/native_widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698