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

Side by Side Diff: chrome/browser/chromeos/native_dialog_window.cc

Issue 8497067: views: Remove the old views/window/ directory and its stubbed files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 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/native_dialog_window.h" 5 #include "chrome/browser/chromeos/native_dialog_window.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/chromeos/frame/bubble_window.h" 11 #include "chrome/browser/chromeos/frame/bubble_window.h"
12 #include "chrome/browser/ui/views/window.h" 12 #include "chrome/browser/ui/views/window.h"
13 #include "ui/base/gtk/gtk_signal.h" 13 #include "ui/base/gtk/gtk_signal.h"
14 #include "ui/views/window/dialog_delegate.h"
15 #include "ui/views/window/non_client_view.h"
14 #include "views/controls/native/native_view_host.h" 16 #include "views/controls/native/native_view_host.h"
15 #include "views/widget/widget.h" 17 #include "views/widget/widget.h"
16 #include "views/window/dialog_delegate.h"
17 #include "views/window/non_client_view.h"
18 18
19 namespace { 19 namespace {
20 20
21 const int kDialogPadding = 3; 21 const int kDialogPadding = 3;
22 22
23 const char kNativeDialogHost[] = "_chromeos_native_dialog_host_"; 23 const char kNativeDialogHost[] = "_chromeos_native_dialog_host_";
24 24
25 // TODO(xiyuan): Use gtk_window_get_default_widget with GTK 2.14+. 25 // TODO(xiyuan): Use gtk_window_get_default_widget with GTK 2.14+.
26 // Gets the default widget of given dialog. 26 // Gets the default widget of given dialog.
27 GtkWidget* GetDialogDefaultWidget(GtkDialog* dialog) { 27 GtkWidget* GetDialogDefaultWidget(GtkDialog* dialog) {
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 return host ? host->GetWidget()->GetNativeWindow() : NULL; 341 return host ? host->GetWidget()->GetNativeWindow() : NULL;
342 } 342 }
343 343
344 gfx::Rect GetNativeDialogContentsBounds(gfx::NativeView native_dialog) { 344 gfx::Rect GetNativeDialogContentsBounds(gfx::NativeView native_dialog) {
345 NativeDialogHost* host = reinterpret_cast<NativeDialogHost*>( 345 NativeDialogHost* host = reinterpret_cast<NativeDialogHost*>(
346 g_object_get_data(G_OBJECT(native_dialog), kNativeDialogHost)); 346 g_object_get_data(G_OBJECT(native_dialog), kNativeDialogHost));
347 return host ? host->bounds() : gfx::Rect(); 347 return host ? host->bounds() : gfx::Rect();
348 } 348 }
349 349
350 } // namespace chromeos 350 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/password_changed_view.h ('k') | chrome/browser/chromeos/options/network_config_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698