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

Side by Side Diff: chrome/browser/ui/views/extensions/native_app_window_views.h

Issue 14969012: components: Create web_modal component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-before-land Created 7 years, 7 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_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "chrome/browser/ui/base_window.h" 9 #include "chrome/browser/ui/base_window.h"
10 #include "chrome/browser/ui/extensions/native_app_window.h" 10 #include "chrome/browser/ui/extensions/native_app_window.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual bool IsDetached() const OVERRIDE; 132 virtual bool IsDetached() const OVERRIDE;
133 virtual void UpdateWindowIcon() OVERRIDE; 133 virtual void UpdateWindowIcon() OVERRIDE;
134 virtual void UpdateWindowTitle() OVERRIDE; 134 virtual void UpdateWindowTitle() OVERRIDE;
135 virtual void UpdateDraggableRegions( 135 virtual void UpdateDraggableRegions(
136 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; 136 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
137 virtual void HandleKeyboardEvent( 137 virtual void HandleKeyboardEvent(
138 const content::NativeWebKeyboardEvent& event) OVERRIDE; 138 const content::NativeWebKeyboardEvent& event) OVERRIDE;
139 virtual void RenderViewHostChanged() OVERRIDE; 139 virtual void RenderViewHostChanged() OVERRIDE;
140 virtual gfx::Insets GetFrameInsets() const OVERRIDE; 140 virtual gfx::Insets GetFrameInsets() const OVERRIDE;
141 141
142 // WebContentsModalDialogHost implementation. 142 // web_modal::WebContentsModalDialogHost implementation.
143 virtual gfx::NativeView GetHostView() const OVERRIDE; 143 virtual gfx::NativeView GetHostView() const OVERRIDE;
144 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 144 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
145 virtual void AddObserver( 145 virtual void AddObserver(
146 WebContentsModalDialogHostObserver* observer) OVERRIDE; 146 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
147 virtual void RemoveObserver( 147 virtual void RemoveObserver(
148 WebContentsModalDialogHostObserver* observer) OVERRIDE; 148 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
149 149
150 Profile* profile() { return shell_window_->profile(); } 150 Profile* profile() { return shell_window_->profile(); }
151 content::WebContents* web_contents() { 151 content::WebContents* web_contents() {
152 return shell_window_->web_contents(); 152 return shell_window_->web_contents();
153 } 153 }
154 const extensions::Extension* extension() { 154 const extensions::Extension* extension() {
155 return shell_window_->extension(); 155 return shell_window_->extension();
156 } 156 }
157 157
158 ShellWindow* shell_window_; // weak - ShellWindow owns NativeAppWindow. 158 ShellWindow* shell_window_; // weak - ShellWindow owns NativeAppWindow.
(...skipping 10 matching lines...) Expand all
169 gfx::Size preferred_size_; 169 gfx::Size preferred_size_;
170 bool resizable_; 170 bool resizable_;
171 171
172 // The class that registers for keyboard shortcuts for extension commands. 172 // The class that registers for keyboard shortcuts for extension commands.
173 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; 173 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_;
174 174
175 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 175 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
176 176
177 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_; 177 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_;
178 178
179 ObserverList<WebContentsModalDialogHostObserver> observer_list_; 179 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_;
180 180
181 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); 181 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews);
182 }; 182 };
183 183
184 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_ 184 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698