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

Side by Side Diff: chrome/browser/ui/cocoa/constrained_web_dialog_delegate_mac.mm

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/constrained_web_dialog_delegate_base.h" 5 #include "chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_web_dialo g_sheet.h"
11 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_wi ndow.h" 10 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_wi ndow.h"
12 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" 11 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
12 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_web_dialo g_sheet.h"
13 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
14 #include "ui/gfx/size.h" 14 #include "ui/gfx/geometry/size.h"
15 #include "ui/web_dialogs/web_dialog_delegate.h" 15 #include "ui/web_dialogs/web_dialog_delegate.h"
16 #include "ui/web_dialogs/web_dialog_ui.h" 16 #include "ui/web_dialogs/web_dialog_ui.h"
17 #include "ui/web_dialogs/web_dialog_web_contents_delegate.h" 17 #include "ui/web_dialogs/web_dialog_web_contents_delegate.h"
18 18
19 using content::WebContents; 19 using content::WebContents;
20 using ui::WebDialogDelegate; 20 using ui::WebDialogDelegate;
21 using ui::WebDialogWebContentsDelegate; 21 using ui::WebDialogWebContentsDelegate;
22 using web_modal::NativeWebContentsModalDialog; 22 using web_modal::NativeWebContentsModalDialog;
23 23
24 namespace { 24 namespace {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 ConstrainedWebDialogDelegate* ShowConstrainedWebDialog( 133 ConstrainedWebDialogDelegate* ShowConstrainedWebDialog(
134 content::BrowserContext* browser_context, 134 content::BrowserContext* browser_context,
135 WebDialogDelegate* delegate, 135 WebDialogDelegate* delegate,
136 content::WebContents* web_contents) { 136 content::WebContents* web_contents) {
137 // Deleted when the dialog closes. 137 // Deleted when the dialog closes.
138 ConstrainedWebDialogDelegateViewMac* constrained_delegate = 138 ConstrainedWebDialogDelegateViewMac* constrained_delegate =
139 new ConstrainedWebDialogDelegateViewMac( 139 new ConstrainedWebDialogDelegateViewMac(
140 browser_context, delegate, web_contents); 140 browser_context, delegate, web_contents);
141 return constrained_delegate; 141 return constrained_delegate;
142 } 142 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698