| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_SIGN_IN_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_SIGN_IN_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_SIGN_IN_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_SIGN_IN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "content/public/browser/web_contents_delegate.h" | 9 #include "content/public/browser/web_contents_delegate.h" |
| 10 #include "content/public/browser/web_contents_observer.h" | 10 #include "content/public/browser/web_contents_observer.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 const gfx::Size& preferred_size) OVERRIDE; | 34 const gfx::Size& preferred_size) OVERRIDE; |
| 35 virtual content::WebContents* OpenURLFromTab( | 35 virtual content::WebContents* OpenURLFromTab( |
| 36 content::WebContents* source, | 36 content::WebContents* source, |
| 37 const content::OpenURLParams& params) OVERRIDE; | 37 const content::OpenURLParams& params) OVERRIDE; |
| 38 virtual void AddNewContents(content::WebContents* source, | 38 virtual void AddNewContents(content::WebContents* source, |
| 39 content::WebContents* new_contents, | 39 content::WebContents* new_contents, |
| 40 WindowOpenDisposition disposition, | 40 WindowOpenDisposition disposition, |
| 41 const gfx::Rect& initial_pos, | 41 const gfx::Rect& initial_pos, |
| 42 bool user_gesture, | 42 bool user_gesture, |
| 43 bool* was_blocked) OVERRIDE; | 43 bool* was_blocked) OVERRIDE; |
| 44 virtual bool PreHandleGestureEvent( |
| 45 content::WebContents* source, |
| 46 const blink::WebGestureEvent& event) OVERRIDE; |
| 44 | 47 |
| 45 // WebContentsObserver implementation. | 48 // WebContentsObserver implementation. |
| 46 virtual void RenderViewCreated( | 49 virtual void RenderViewCreated( |
| 47 content::RenderViewHost* render_view_host) OVERRIDE; | 50 content::RenderViewHost* render_view_host) OVERRIDE; |
| 48 | 51 |
| 49 // Updates the size limits and enables auto-resize for this view. | 52 // Updates the size limits and enables auto-resize for this view. |
| 50 void UpdateLimitsAndEnableAutoResize(const gfx::Size& minimum_size, | 53 void UpdateLimitsAndEnableAutoResize(const gfx::Size& minimum_size, |
| 51 const gfx::Size& maximum_size); | 54 const gfx::Size& maximum_size); |
| 52 | 55 |
| 53 private: | 56 private: |
| (...skipping 12 matching lines...) Expand all Loading... |
| 66 // The minimum and maximum sizes that the sign-in view may have. | 69 // The minimum and maximum sizes that the sign-in view may have. |
| 67 gfx::Size minimum_size_; | 70 gfx::Size minimum_size_; |
| 68 gfx::Size maximum_size_; | 71 gfx::Size maximum_size_; |
| 69 | 72 |
| 70 DISALLOW_COPY_AND_ASSIGN(AutofillDialogSignInDelegate); | 73 DISALLOW_COPY_AND_ASSIGN(AutofillDialogSignInDelegate); |
| 71 }; | 74 }; |
| 72 | 75 |
| 73 } // namespace autofill | 76 } // namespace autofill |
| 74 | 77 |
| 75 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_SIGN_IN_DELEGATE_H_ | 78 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_SIGN_IN_DELEGATE_H_ |
| OLD | NEW |