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

Side by Side Diff: ui/views/controls/webview/web_dialog_view.cc

Issue 10917075: events: Move some files into ui/base/events/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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 | « ui/views/controls/tree/tree_view_win.cc ('k') | ui/views/controls/webview/webview.cc » ('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) 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 "ui/views/controls/webview/web_dialog_view.h" 5 #include "ui/views/controls/webview/web_dialog_view.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "content/public/browser/browser_context.h" 10 #include "content/public/browser/browser_context.h"
11 #include "content/public/browser/native_web_keyboard_event.h" 11 #include "content/public/browser/native_web_keyboard_event.h"
12 #include "content/public/browser/notification_details.h" 12 #include "content/public/browser/notification_details.h"
13 #include "content/public/browser/notification_source.h" 13 #include "content/public/browser/notification_source.h"
14 #include "content/public/browser/notification_types.h" 14 #include "content/public/browser/notification_types.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "ui/base/keycodes/keyboard_codes.h" 16 #include "ui/base/keycodes/keyboard_codes.h"
17 #include "ui/views/controls/webview/webview.h" 17 #include "ui/views/controls/webview/webview.h"
18 #include "ui/views/layout/fill_layout.h" 18 #include "ui/views/layout/fill_layout.h"
19 #include "ui/views/widget/root_view.h" 19 #include "ui/views/widget/root_view.h"
20 #include "ui/views/widget/widget.h" 20 #include "ui/views/widget/widget.h"
21 #include "ui/web_dialogs/web_dialog_delegate.h" 21 #include "ui/web_dialogs/web_dialog_delegate.h"
22 #include "ui/web_dialogs/web_dialog_ui.h" 22 #include "ui/web_dialogs/web_dialog_ui.h"
23 23
24 #if defined(USE_AURA) 24 #if defined(USE_AURA)
25 #include "ui/base/event.h" 25 #include "ui/base/events/event.h"
26 #include "ui/views/widget/native_widget_aura.h" 26 #include "ui/views/widget/native_widget_aura.h"
27 #endif 27 #endif
28 28
29 using content::NativeWebKeyboardEvent; 29 using content::NativeWebKeyboardEvent;
30 using content::WebContents; 30 using content::WebContents;
31 using content::WebUIMessageHandler; 31 using content::WebUIMessageHandler;
32 using ui::WebDialogDelegate; 32 using ui::WebDialogDelegate;
33 using ui::WebDialogUI; 33 using ui::WebDialogUI;
34 using ui::WebDialogWebContentsDelegate; 34 using ui::WebDialogWebContentsDelegate;
35 35
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 gfx::Size out; 313 gfx::Size out;
314 delegate_->GetDialogSize(&out); 314 delegate_->GetDialogSize(&out);
315 if (!out.IsEmpty() && GetWidget()) 315 if (!out.IsEmpty() && GetWidget())
316 GetWidget()->CenterWindow(out); 316 GetWidget()->CenterWindow(out);
317 } 317 }
318 318
319 web_view_->LoadInitialURL(GetDialogContentURL()); 319 web_view_->LoadInitialURL(GetDialogContentURL());
320 } 320 }
321 321
322 } // namespace views 322 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/tree/tree_view_win.cc ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698