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

Side by Side Diff: third_party/WebKit/Source/web/ChromeClientImpl.cpp

Issue 2848513002: Introduce the abstract class WebViewBase, to decouple WebViewImpl. (Closed)
Patch Set: Fix typo. Created 3 years, 7 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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 21 matching lines...) Expand all
32 #include "web/ChromeClientImpl.h" 32 #include "web/ChromeClientImpl.h"
33 33
34 #include <memory> 34 #include <memory>
35 #include "bindings/core/v8/ScriptController.h" 35 #include "bindings/core/v8/ScriptController.h"
36 #include "core/HTMLNames.h" 36 #include "core/HTMLNames.h"
37 #include "core/dom/AXObjectCache.h" 37 #include "core/dom/AXObjectCache.h"
38 #include "core/dom/Document.h" 38 #include "core/dom/Document.h"
39 #include "core/dom/Fullscreen.h" 39 #include "core/dom/Fullscreen.h"
40 #include "core/dom/Node.h" 40 #include "core/dom/Node.h"
41 #include "core/events/UIEventWithKeyState.h" 41 #include "core/events/UIEventWithKeyState.h"
42 #include "core/exported/WebViewBase.h"
42 #include "core/frame/FrameView.h" 43 #include "core/frame/FrameView.h"
43 #include "core/frame/Settings.h" 44 #include "core/frame/Settings.h"
44 #include "core/frame/VisualViewport.h" 45 #include "core/frame/VisualViewport.h"
45 #include "core/html/HTMLInputElement.h" 46 #include "core/html/HTMLInputElement.h"
46 #include "core/html/forms/ColorChooser.h" 47 #include "core/html/forms/ColorChooser.h"
47 #include "core/html/forms/ColorChooserClient.h" 48 #include "core/html/forms/ColorChooserClient.h"
48 #include "core/html/forms/DateTimeChooser.h" 49 #include "core/html/forms/DateTimeChooser.h"
49 #include "core/layout/HitTestResult.h" 50 #include "core/layout/HitTestResult.h"
50 #include "core/layout/LayoutPart.h" 51 #include "core/layout/LayoutPart.h"
51 #include "core/layout/compositing/CompositedSelection.h" 52 #include "core/layout/compositing/CompositedSelection.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 #include "web/IndexedDBClientImpl.h" 117 #include "web/IndexedDBClientImpl.h"
117 #include "web/LocalFileSystemClient.h" 118 #include "web/LocalFileSystemClient.h"
118 #include "web/NavigatorContentUtilsClientImpl.h" 119 #include "web/NavigatorContentUtilsClientImpl.h"
119 #include "web/PopupMenuImpl.h" 120 #include "web/PopupMenuImpl.h"
120 #include "web/WebFileChooserCompletionImpl.h" 121 #include "web/WebFileChooserCompletionImpl.h"
121 #include "web/WebFrameWidgetImpl.h" 122 #include "web/WebFrameWidgetImpl.h"
122 #include "web/WebInputEventConversion.h" 123 #include "web/WebInputEventConversion.h"
123 #include "web/WebLocalFrameImpl.h" 124 #include "web/WebLocalFrameImpl.h"
124 #include "web/WebPluginContainerImpl.h" 125 #include "web/WebPluginContainerImpl.h"
125 #include "web/WebSettingsImpl.h" 126 #include "web/WebSettingsImpl.h"
126 #include "web/WebViewImpl.h"
127 127
128 namespace blink { 128 namespace blink {
129 129
130 namespace { 130 namespace {
131 131
132 const char* DialogTypeToString(ChromeClient::DialogType dialog_type) { 132 const char* DialogTypeToString(ChromeClient::DialogType dialog_type) {
133 switch (dialog_type) { 133 switch (dialog_type) {
134 case ChromeClient::kAlertDialog: 134 case ChromeClient::kAlertDialog:
135 return "alert"; 135 return "alert";
136 case ChromeClient::kConfirmDialog: 136 case ChromeClient::kConfirmDialog:
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 // disabled, often causing the window to open as a popup instead. 340 // disabled, often causing the window to open as a popup instead.
341 // 341 //
342 // As specifying menubar, resizable, scrollbar, and statusbar have no effect 342 // As specifying menubar, resizable, scrollbar, and statusbar have no effect
343 // on the UI, just ignore them and only consider whether or not the toolbar is 343 // on the UI, just ignore them and only consider whether or not the toolbar is
344 // enabled, which matches Firefox's behavior. 344 // enabled, which matches Firefox's behavior.
345 bool as_popup = !features.tool_bar_visible; 345 bool as_popup = !features.tool_bar_visible;
346 346
347 NavigationPolicy policy = kNavigationPolicyNewForegroundTab; 347 NavigationPolicy policy = kNavigationPolicyNewForegroundTab;
348 if (as_popup) 348 if (as_popup)
349 policy = kNavigationPolicyNewPopup; 349 policy = kNavigationPolicyNewPopup;
350 UpdatePolicyForEvent(WebViewImpl::CurrentInputEvent(), &policy); 350 UpdatePolicyForEvent(WebViewBase::CurrentInputEvent(), &policy);
351 351
352 return static_cast<WebNavigationPolicy>(policy); 352 return static_cast<WebNavigationPolicy>(policy);
353 } 353 }
354 354
355 WebNavigationPolicy EffectiveNavigationPolicy( 355 WebNavigationPolicy EffectiveNavigationPolicy(
356 NavigationPolicy navigation_policy, 356 NavigationPolicy navigation_policy,
357 const WindowFeatures& features) { 357 const WindowFeatures& features) {
358 WebNavigationPolicy policy = 358 WebNavigationPolicy policy =
359 static_cast<WebNavigationPolicy>(navigation_policy); 359 static_cast<WebNavigationPolicy>(navigation_policy);
360 if (policy == kWebNavigationPolicyIgnore) 360 if (policy == kWebNavigationPolicyIgnore)
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 if (RuntimeEnabledFeatures::presentationEnabled()) 1235 if (RuntimeEnabledFeatures::presentationEnabled())
1236 PresentationController::ProvideTo(frame, client->PresentationClient()); 1236 PresentationController::ProvideTo(frame, client->PresentationClient());
1237 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) { 1237 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) {
1238 ProvideAudioOutputDeviceClientTo(frame, 1238 ProvideAudioOutputDeviceClientTo(frame,
1239 new AudioOutputDeviceClientImpl(frame)); 1239 new AudioOutputDeviceClientImpl(frame));
1240 } 1240 }
1241 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher()); 1241 InstalledAppController::ProvideTo(frame, client->GetRelatedAppsFetcher());
1242 } 1242 }
1243 1243
1244 } // namespace blink 1244 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/exported/WebViewBase.h ('k') | third_party/WebKit/Source/web/ColorChooserPopupUIController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698