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

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

Issue 2882513005: Propagate opener to BackgroundsContents. (Closed)
Patch Set: Tweaked the comment in DriveWebContentsManager::ShouldCreateWebContents Created 3 years, 6 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) 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 bool CanDragEnter(content::WebContents* source, 53 bool CanDragEnter(content::WebContents* source,
54 const content::DropData& data, 54 const content::DropData& data,
55 blink::WebDragOperationsMask operations_allowed) override { 55 blink::WebDragOperationsMask operations_allowed) override {
56 return false; 56 return false;
57 } 57 }
58 58
59 bool ShouldCreateWebContents( 59 bool ShouldCreateWebContents(
60 content::WebContents* web_contents, 60 content::WebContents* web_contents,
61 content::RenderFrameHost* opener,
61 content::SiteInstance* source_site_instance, 62 content::SiteInstance* source_site_instance,
62 int32_t route_id, 63 int32_t route_id,
63 int32_t main_frame_route_id, 64 int32_t main_frame_route_id,
64 int32_t main_frame_widget_route_id, 65 int32_t main_frame_widget_route_id,
65 content::mojom::WindowContainerType window_container_type, 66 content::mojom::WindowContainerType window_container_type,
66 const GURL& opener_url, 67 const GURL& opener_url,
67 const std::string& frame_name, 68 const std::string& frame_name,
68 const GURL& target_url, 69 const GURL& target_url,
69 const std::string& partition_id, 70 const std::string& partition_id,
70 content::SessionStorageNamespace* session_storage_namespace) override { 71 content::SessionStorageNamespace* session_storage_namespace) override {
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 keyboard_controller()->keyboard_visible()); 349 keyboard_controller()->keyboard_visible());
349 } 350 }
350 351
351 void KeyboardUIContent::AddBoundsChangedObserver(aura::Window* window) { 352 void KeyboardUIContent::AddBoundsChangedObserver(aura::Window* window) {
352 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr; 353 aura::Window* target_window = window ? window->GetToplevelWindow() : nullptr;
353 if (target_window) 354 if (target_window)
354 window_bounds_observer_->AddObservedWindow(target_window); 355 window_bounds_observer_->AddObservedWindow(target_window);
355 } 356 }
356 357
357 } // namespace keyboard 358 } // namespace keyboard
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698