| 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 UI_VIEWS_VIEWS_DELEGATE_H_ |    5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_ | 
|    6 #define UI_VIEWS_VIEWS_DELEGATE_H_ |    6 #define UI_VIEWS_VIEWS_DELEGATE_H_ | 
|    7  |    7  | 
|    8 #include <string> |    8 #include <string> | 
|    9  |    9  | 
|   10 #if defined(OS_WIN) |   10 #if defined(OS_WIN) | 
|   11 #include <windows.h> |   11 #include <windows.h> | 
|   12 #endif |   12 #endif | 
|   13  |   13  | 
|   14 #include "base/strings/string16.h" |   14 #include "base/strings/string16.h" | 
|   15 #include "ui/accessibility/ax_enums.h" |   15 #include "ui/accessibility/ax_enums.h" | 
|   16 #include "ui/base/ui_base_types.h" |   16 #include "ui/base/ui_base_types.h" | 
|   17 #include "ui/gfx/native_widget_types.h" |   17 #include "ui/gfx/native_widget_types.h" | 
|   18 #include "ui/views/views_export.h" |   18 #include "ui/views/views_export.h" | 
|   19 #include "ui/views/widget/widget.h" |   19 #include "ui/views/widget/widget.h" | 
|   20  |   20  | 
|   21 namespace base { |   21 namespace base { | 
 |   22 class TaskRunner; | 
|   22 class TimeDelta; |   23 class TimeDelta; | 
|   23 } |   24 } | 
|   24  |   25  | 
|   25 namespace content { |   26 namespace content { | 
|   26 class WebContents; |   27 class WebContents; | 
|   27 class BrowserContext; |   28 class BrowserContext; | 
|   28 class SiteInstance; |   29 class SiteInstance; | 
|   29 } |   30 } | 
|   30  |   31  | 
|   31 namespace gfx { |   32 namespace gfx { | 
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  131   // |remove_standard_frame| in InitParams). If |maximized|, this applies to |  132   // |remove_standard_frame| in InitParams). If |maximized|, this applies to | 
|  132   // maximized windows; otherwise to restored windows. |  133   // maximized windows; otherwise to restored windows. | 
|  133   virtual bool WindowManagerProvidesTitleBar(bool maximized); |  134   virtual bool WindowManagerProvidesTitleBar(bool maximized); | 
|  134  |  135  | 
|  135   // Returns the context factory for new windows. |  136   // Returns the context factory for new windows. | 
|  136   virtual ui::ContextFactory* GetContextFactory(); |  137   virtual ui::ContextFactory* GetContextFactory(); | 
|  137  |  138  | 
|  138   // Returns the user-visible name of the application. |  139   // Returns the user-visible name of the application. | 
|  139   virtual std::string GetApplicationName(); |  140   virtual std::string GetApplicationName(); | 
|  140  |  141  | 
 |  142   // Get a task runner suitable for posting possibly-blocking initialization | 
 |  143   // tasks. | 
 |  144   virtual scoped_refptr<base::TaskRunner> GetInitializationTaskRunner(); | 
 |  145  | 
|  141 #if defined(OS_WIN) |  146 #if defined(OS_WIN) | 
|  142   // Starts a query for the appbar autohide edges of the specified monitor and |  147   // Starts a query for the appbar autohide edges of the specified monitor and | 
|  143   // returns the current value.  If the query finds the edges have changed from |  148   // returns the current value.  If the query finds the edges have changed from | 
|  144   // the current value, |callback| is subsequently invoked.  If the edges have |  149   // the current value, |callback| is subsequently invoked.  If the edges have | 
|  145   // not changed, |callback| is never run. |  150   // not changed, |callback| is never run. | 
|  146   // |  151   // | 
|  147   // The return value is a bitmask of AppbarAutohideEdge. |  152   // The return value is a bitmask of AppbarAutohideEdge. | 
|  148   virtual int GetAppbarAutohideEdges(HMONITOR monitor, |  153   virtual int GetAppbarAutohideEdges(HMONITOR monitor, | 
|  149                                      const base::Closure& callback); |  154                                      const base::Closure& callback); | 
|  150 #endif |  155 #endif | 
|  151  |  156  | 
|  152   // The active ViewsDelegate used by the views system. |  157   // The active ViewsDelegate used by the views system. | 
|  153   static ViewsDelegate* views_delegate; |  158   static ViewsDelegate* views_delegate; | 
|  154  |  159  | 
|  155  private: |  160  private: | 
|  156   scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; |  161   scoped_ptr<ViewsTouchEditingControllerFactory> views_tsc_factory_; | 
|  157  |  162  | 
|  158   DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); |  163   DISALLOW_COPY_AND_ASSIGN(ViewsDelegate); | 
|  159 }; |  164 }; | 
|  160  |  165  | 
|  161 }  // namespace views |  166 }  // namespace views | 
|  162  |  167  | 
|  163 #endif  // UI_VIEWS_VIEWS_DELEGATE_H_ |  168 #endif  // UI_VIEWS_VIEWS_DELEGATE_H_ | 
| OLD | NEW |