Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1257)

Side by Side Diff: chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.h

Issue 13588007: Implement WebContentsModalDialogManagerDelegate for ShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove newlines in headers Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_NATIVE_APP_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual bool IsFullscreenOrPending() const OVERRIDE; 106 virtual bool IsFullscreenOrPending() const OVERRIDE;
107 virtual void UpdateWindowIcon() OVERRIDE; 107 virtual void UpdateWindowIcon() OVERRIDE;
108 virtual void UpdateWindowTitle() OVERRIDE; 108 virtual void UpdateWindowTitle() OVERRIDE;
109 virtual void UpdateDraggableRegions( 109 virtual void UpdateDraggableRegions(
110 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; 110 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
111 virtual void HandleKeyboardEvent( 111 virtual void HandleKeyboardEvent(
112 const content::NativeWebKeyboardEvent& event) OVERRIDE; 112 const content::NativeWebKeyboardEvent& event) OVERRIDE;
113 virtual void RenderViewHostChanged() OVERRIDE; 113 virtual void RenderViewHostChanged() OVERRIDE;
114 virtual gfx::Insets GetFrameInsets() const OVERRIDE; 114 virtual gfx::Insets GetFrameInsets() const OVERRIDE;
115 115
116 // WebContentsModalDialogHost implementation.
117 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
118 virtual void AddObserver(
119 WebContentsModalDialogHostObserver* observer) OVERRIDE;
120 virtual void RemoveObserver(
121 WebContentsModalDialogHostObserver* observer) OVERRIDE;
122
116 private: 123 private:
117 virtual ~NativeAppWindowCocoa(); 124 virtual ~NativeAppWindowCocoa();
118 125
119 ShellNSWindow* window() const; 126 ShellNSWindow* window() const;
120 127
121 content::WebContents* web_contents() const { 128 content::WebContents* web_contents() const {
122 return shell_window_->web_contents(); 129 return shell_window_->web_contents();
123 } 130 }
124 const extensions::Extension* extension() const { 131 const extensions::Extension* extension() const {
125 return shell_window_->extension(); 132 return shell_window_->extension();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 NSPoint last_mouse_location_; 172 NSPoint last_mouse_location_;
166 173
167 // The Extension Command Registry used to determine which keyboard events to 174 // The Extension Command Registry used to determine which keyboard events to
168 // handle. 175 // handle.
169 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 176 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
170 177
171 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); 178 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa);
172 }; 179 };
173 180
174 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ 181 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/extensions/native_app_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698