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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_sign_in_delegate.cc

Issue 889403004: Rename initial_pos to initial_rect in ShowWidget and ShowView IPCs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "chrome/browser/ui/autofill/autofill_dialog_sign_in_delegate.h" 5 #include "chrome/browser/ui/autofill/autofill_dialog_sign_in_delegate.h"
6 6
7 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" 7 #include "chrome/browser/ui/autofill/autofill_dialog_view.h"
8 #include "chrome/browser/ui/browser_finder.h" 8 #include "chrome/browser/ui/browser_finder.h"
9 #include "chrome/browser/ui/browser_tabstrip.h" 9 #include "chrome/browser/ui/browser_tabstrip.h"
10 #include "components/autofill/content/browser/wallet/wallet_service_url.h" 10 #include "components/autofill/content/browser/wallet/wallet_service_url.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 std::string()); 82 std::string());
83 return source; 83 return source;
84 } 84 }
85 85
86 // This gets invoked whenever there is an attempt to open a new window/tab. 86 // This gets invoked whenever there is an attempt to open a new window/tab.
87 // Reroute to the original browser. 87 // Reroute to the original browser.
88 void AutofillDialogSignInDelegate::AddNewContents( 88 void AutofillDialogSignInDelegate::AddNewContents(
89 content::WebContents* source, 89 content::WebContents* source,
90 content::WebContents* new_contents, 90 content::WebContents* new_contents,
91 WindowOpenDisposition disposition, 91 WindowOpenDisposition disposition,
92 const gfx::Rect& initial_pos, 92 const gfx::Rect& initial_rect,
93 bool user_gesture, 93 bool user_gesture,
94 bool* was_blocked) { 94 bool* was_blocked) {
95 chrome::AddWebContents( 95 chrome::AddWebContents(
96 chrome::FindBrowserWithWebContents(originating_web_contents_), 96 chrome::FindBrowserWithWebContents(originating_web_contents_),
97 source, new_contents, disposition, initial_pos, user_gesture, 97 source, new_contents, disposition, initial_rect, user_gesture,
98 was_blocked); 98 was_blocked);
99 } 99 }
100 100
101 bool AutofillDialogSignInDelegate::PreHandleGestureEvent( 101 bool AutofillDialogSignInDelegate::PreHandleGestureEvent(
102 content::WebContents* source, 102 content::WebContents* source,
103 const blink::WebGestureEvent& event) { 103 const blink::WebGestureEvent& event) {
104 // Disable pinch zooming. 104 // Disable pinch zooming.
105 return event.type == blink::WebGestureEvent::GesturePinchBegin || 105 return event.type == blink::WebGestureEvent::GesturePinchBegin ||
106 event.type == blink::WebGestureEvent::GesturePinchUpdate || 106 event.type == blink::WebGestureEvent::GesturePinchUpdate ||
107 event.type == blink::WebGestureEvent::GesturePinchEnd; 107 event.type == blink::WebGestureEvent::GesturePinchEnd;
(...skipping 17 matching lines...) Expand all
125 125
126 void AutofillDialogSignInDelegate::EnableAutoResize() { 126 void AutofillDialogSignInDelegate::EnableAutoResize() {
127 DCHECK(!minimum_size_.IsEmpty()); 127 DCHECK(!minimum_size_.IsEmpty());
128 DCHECK(!maximum_size_.IsEmpty()); 128 DCHECK(!maximum_size_.IsEmpty());
129 content::RenderViewHost* host = web_contents()->GetRenderViewHost(); 129 content::RenderViewHost* host = web_contents()->GetRenderViewHost();
130 if (host) 130 if (host)
131 host->EnableAutoResize(minimum_size_, maximum_size_); 131 host->EnableAutoResize(minimum_size_, maximum_size_);
132 } 132 }
133 133
134 } // namespace autofill 134 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_sign_in_delegate.h ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698