| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 views::Widget* widget) OVERRIDE; | 44 views::Widget* widget) OVERRIDE; |
| 45 virtual void AddRef() OVERRIDE; | 45 virtual void AddRef() OVERRIDE; |
| 46 virtual void ReleaseRef() OVERRIDE; | 46 virtual void ReleaseRef() OVERRIDE; |
| 47 virtual content::WebContents* CreateWebContents( | 47 virtual content::WebContents* CreateWebContents( |
| 48 content::BrowserContext* browser_context, | 48 content::BrowserContext* browser_context, |
| 49 content::SiteInstance* site_instance) OVERRIDE; | 49 content::SiteInstance* site_instance) OVERRIDE; |
| 50 virtual void OnBeforeWidgetInit( | 50 virtual void OnBeforeWidgetInit( |
| 51 views::Widget::InitParams* params, | 51 views::Widget::InitParams* params, |
| 52 views::internal::NativeWidgetDelegate* delegate) OVERRIDE; | 52 views::internal::NativeWidgetDelegate* delegate) OVERRIDE; |
| 53 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE; | 53 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE; |
| 54 virtual bool WindowManagerProvidesTitleBar(bool maximized) OVERRIDE; |
| 54 | 55 |
| 55 private: | 56 private: |
| 56 // Function to retrieve default opacity value mainly based on platform | 57 // Function to retrieve default opacity value mainly based on platform |
| 57 // and desktop context. | 58 // and desktop context. |
| 58 views::Widget::InitParams::WindowOpacity GetOpacityForInitParams( | 59 views::Widget::InitParams::WindowOpacity GetOpacityForInitParams( |
| 59 const views::Widget::InitParams& params); | 60 const views::Widget::InitParams& params); |
| 60 | 61 |
| 61 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 62 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
| 62 }; | 63 }; |
| 63 | 64 |
| 64 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 65 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
| OLD | NEW |