| 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_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 
| 7 | 7 | 
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> | 
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" | 
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" | 
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 55   virtual bool IsDrawingAttention() const OVERRIDE; | 55   virtual bool IsDrawingAttention() const OVERRIDE; | 
| 56   virtual bool PreHandlePanelKeyboardEvent( | 56   virtual bool PreHandlePanelKeyboardEvent( | 
| 57       const NativeWebKeyboardEvent& event, | 57       const NativeWebKeyboardEvent& event, | 
| 58       bool* is_keyboard_shortcut) OVERRIDE; | 58       bool* is_keyboard_shortcut) OVERRIDE; | 
| 59   virtual void HandlePanelKeyboardEvent( | 59   virtual void HandlePanelKeyboardEvent( | 
| 60       const NativeWebKeyboardEvent& event) OVERRIDE; | 60       const NativeWebKeyboardEvent& event) OVERRIDE; | 
| 61   virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; | 61   virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; | 
| 62   virtual Browser* GetPanelBrowser() const OVERRIDE; | 62   virtual Browser* GetPanelBrowser() const OVERRIDE; | 
| 63   virtual void DestroyPanelBrowser() OVERRIDE; | 63   virtual void DestroyPanelBrowser() OVERRIDE; | 
| 64   virtual void EnsurePanelFullyVisible() OVERRIDE; | 64   virtual void EnsurePanelFullyVisible() OVERRIDE; | 
| 65   virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; |  | 
| 66   virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; | 65   virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; | 
| 67   virtual void EnableResizeByMouse(bool enable) OVERRIDE; | 66   virtual void EnableResizeByMouse(bool enable) OVERRIDE; | 
|  | 67   virtual void UpdateMinimizeRestoreButtonVisibility() OVERRIDE; | 
| 68 | 68 | 
| 69   // These sizes are in screen coordinates. | 69   // These sizes are in screen coordinates. | 
| 70   virtual gfx::Size WindowSizeFromContentSize( | 70   virtual gfx::Size WindowSizeFromContentSize( | 
| 71       const gfx::Size& content_size) const OVERRIDE; | 71       const gfx::Size& content_size) const OVERRIDE; | 
| 72   virtual gfx::Size ContentSizeFromWindowSize( | 72   virtual gfx::Size ContentSizeFromWindowSize( | 
| 73       const gfx::Size& window_size) const OVERRIDE; | 73       const gfx::Size& window_size) const OVERRIDE; | 
| 74   virtual int TitleOnlyHeight() const OVERRIDE; | 74   virtual int TitleOnlyHeight() const OVERRIDE; | 
| 75 | 75 | 
| 76   // Overridden from TabStripModelObserver. | 76   // Overridden from TabStripModelObserver. | 
| 77   virtual void TabInsertedAt(TabContentsWrapper* contents, | 77   virtual void TabInsertedAt(TabContentsWrapper* contents, | 
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 134   // window over other application windows due to panels having a higher | 134   // window over other application windows due to panels having a higher | 
| 135   // priority NSWindowLevel, so we distinguish between the two scenarios. | 135   // priority NSWindowLevel, so we distinguish between the two scenarios. | 
| 136   bool activation_requested_by_browser_; | 136   bool activation_requested_by_browser_; | 
| 137 | 137 | 
| 138   content::NotificationRegistrar registrar_; | 138   content::NotificationRegistrar registrar_; | 
| 139 | 139 | 
| 140   DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); | 140   DISALLOW_COPY_AND_ASSIGN(PanelBrowserWindowCocoa); | 
| 141 }; | 141 }; | 
| 142 | 142 | 
| 143 #endif  // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 143 #endif  // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_COCOA_H_ | 
| OLD | NEW | 
|---|