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

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: Add OVERRIDEs 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
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
Ben Goodger (Google) 2013/04/04 17:34:33 delete nl
Mike Wittman 2013/04/04 22:56:08 Done.
119 virtual void AddObserver(
120 WebContentsModalDialogHostObserver* observer) OVERRIDE;
121 virtual void RemoveObserver(
122 WebContentsModalDialogHostObserver* observer) OVERRIDE;
123
116 private: 124 private:
117 virtual ~NativeAppWindowCocoa(); 125 virtual ~NativeAppWindowCocoa();
118 126
119 ShellNSWindow* window() const; 127 ShellNSWindow* window() const;
120 128
121 content::WebContents* web_contents() const { 129 content::WebContents* web_contents() const {
122 return shell_window_->web_contents(); 130 return shell_window_->web_contents();
123 } 131 }
124 const extensions::Extension* extension() const { 132 const extensions::Extension* extension() const {
125 return shell_window_->extension(); 133 return shell_window_->extension();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 NSPoint last_mouse_location_; 173 NSPoint last_mouse_location_;
166 174
167 // The Extension Command Registry used to determine which keyboard events to 175 // The Extension Command Registry used to determine which keyboard events to
168 // handle. 176 // handle.
169 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 177 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
170 178
171 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); 179 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa);
172 }; 180 };
173 181
174 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ 182 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698