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

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

Issue 22903022: Limit constrained windows to the size of the parent view. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: No initializer Created 7 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_APPS_NATIVE_APP_WINDOW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_
7 7
8 #include "apps/native_app_window.h" 8 #include "apps/native_app_window.h"
9 #include "apps/shell_window.h" 9 #include "apps/shell_window.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 virtual void HandleKeyboardEvent( 141 virtual void HandleKeyboardEvent(
142 const content::NativeWebKeyboardEvent& event) OVERRIDE; 142 const content::NativeWebKeyboardEvent& event) OVERRIDE;
143 virtual void RenderViewHostChanged() OVERRIDE; 143 virtual void RenderViewHostChanged() OVERRIDE;
144 virtual gfx::Insets GetFrameInsets() const OVERRIDE; 144 virtual gfx::Insets GetFrameInsets() const OVERRIDE;
145 virtual void HideWithApp() OVERRIDE; 145 virtual void HideWithApp() OVERRIDE;
146 virtual void ShowWithApp() OVERRIDE; 146 virtual void ShowWithApp() OVERRIDE;
147 147
148 // web_modal::WebContentsModalDialogHost implementation. 148 // web_modal::WebContentsModalDialogHost implementation.
149 virtual gfx::NativeView GetHostView() const OVERRIDE; 149 virtual gfx::NativeView GetHostView() const OVERRIDE;
150 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 150 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
151 virtual gfx::Size GetMaximumDialogSize() OVERRIDE;
151 virtual void AddObserver( 152 virtual void AddObserver(
152 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 153 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
153 virtual void RemoveObserver( 154 virtual void RemoveObserver(
154 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 155 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
155 156
156 Profile* profile() { return shell_window_->profile(); } 157 Profile* profile() { return shell_window_->profile(); }
157 content::WebContents* web_contents() { 158 content::WebContents* web_contents() {
158 return shell_window_->web_contents(); 159 return shell_window_->web_contents();
159 } 160 }
160 const extensions::Extension* extension() { 161 const extensions::Extension* extension() {
(...skipping 24 matching lines...) Expand all
185 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 186 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
186 187
187 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_; 188 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_;
188 189
189 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; 190 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_;
190 191
191 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); 192 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews);
192 }; 193 };
193 194
194 #endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_ 195 #endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/apps/native_app_window_gtk.cc ('k') | chrome/browser/ui/views/apps/native_app_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698