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_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void WindowDidResignKey(); | 64 void WindowDidResignKey(); |
65 | 65 |
66 protected: | 66 protected: |
67 // ShellWindow implementation. | 67 // ShellWindow implementation. |
68 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 68 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
69 virtual bool IsFullscreenOrPending() const OVERRIDE; | 69 virtual bool IsFullscreenOrPending() const OVERRIDE; |
70 | 70 |
71 private: | 71 private: |
72 virtual ~ShellWindowCocoa(); | 72 virtual ~ShellWindowCocoa(); |
73 | 73 |
| 74 // content::WebContentsDelegate implementation. |
| 75 virtual void UpdateDraggableRegions( |
| 76 const std::vector<content::DraggableRegion>& regions) OVERRIDE; |
| 77 |
74 NSWindow* window() const; | 78 NSWindow* window() const; |
75 | 79 |
76 void InstallView(); | 80 void InstallView(); |
77 void UninstallView(); | 81 void UninstallView(); |
78 | 82 |
79 bool has_frame_; | 83 bool has_frame_; |
80 | 84 |
81 bool is_fullscreen_; | 85 bool is_fullscreen_; |
82 NSRect restored_bounds_; | 86 NSRect restored_bounds_; |
83 | 87 |
84 scoped_nsobject<ShellWindowController> window_controller_; | 88 scoped_nsobject<ShellWindowController> window_controller_; |
85 NSInteger attention_request_id_; // identifier from requestUserAttention | 89 NSInteger attention_request_id_; // identifier from requestUserAttention |
86 | 90 |
87 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); | 91 DISALLOW_COPY_AND_ASSIGN(ShellWindowCocoa); |
88 }; | 92 }; |
89 | 93 |
90 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ | 94 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_SHELL_WINDOW_COCOA_H_ |
OLD | NEW |