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

Side by Side Diff: ui/keyboard/content/keyboard_ui_content.cc

Issue 2521793003: Fix WebContentsDelegate::ShouldCreateWebContents implementations. (Closed)
Patch Set: Rename in MaybeCreateBackgroundContents Created 4 years 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/keyboard/content/keyboard_ui_content.h" 5 #include "ui/keyboard/content/keyboard_ui_content.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "content/public/browser/render_widget_host.h" 10 #include "content/public/browser/render_widget_host.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 bool CanDragEnter(content::WebContents* source, 52 bool CanDragEnter(content::WebContents* source,
53 const content::DropData& data, 53 const content::DropData& data,
54 blink::WebDragOperationsMask operations_allowed) override { 54 blink::WebDragOperationsMask operations_allowed) override {
55 return false; 55 return false;
56 } 56 }
57 57
58 bool ShouldCreateWebContents( 58 bool ShouldCreateWebContents(
59 content::WebContents* web_contents, 59 content::WebContents* web_contents,
60 int route_id, 60 content::SiteInstance* source_site_instance,
61 int main_frame_route_id, 61 int32_t route_id,
62 int main_frame_widget_route_id, 62 int32_t main_frame_route_id,
63 int32_t main_frame_widget_route_id,
63 WindowContainerType window_container_type, 64 WindowContainerType window_container_type,
65 const GURL& opener_url,
64 const std::string& frame_name, 66 const std::string& frame_name,
65 const GURL& target_url, 67 const GURL& target_url,
66 const std::string& partition_id, 68 const std::string& partition_id,
67 content::SessionStorageNamespace* session_storage_namespace) override { 69 content::SessionStorageNamespace* session_storage_namespace) override {
68 return false; 70 return false;
69 } 71 }
70 72
71 bool IsPopupOrPanel(const content::WebContents* source) const override { 73 bool IsPopupOrPanel(const content::WebContents* source) const override {
72 return true; 74 return true;
73 } 75 }
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 keyboard_controller()->keyboard_visible()); 328 keyboard_controller()->keyboard_visible());
327 } 329 }
328 330
329 void KeyboardUIContent::AddBoundsChangedObserver(aura::Window* window) { 331 void KeyboardUIContent::AddBoundsChangedObserver(aura::Window* window) {
330 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; 332 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr;
331 if (target_window) 333 if (target_window)
332 window_bounds_observer_->AddObservedWindow(target_window); 334 window_bounds_observer_->AddObservedWindow(target_window);
333 } 335 }
334 336
335 } // namespace keyboard 337 } // namespace keyboard
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698