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

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: Addressed comments Created 7 years, 4 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 virtual void UpdateDraggableRegions( 139 virtual void UpdateDraggableRegions(
140 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; 140 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
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 145
146 // web_modal::WebContentsModalDialogHost implementation. 146 // web_modal::WebContentsModalDialogHost implementation.
147 virtual gfx::NativeView GetHostView() const OVERRIDE; 147 virtual gfx::NativeView GetHostView() const OVERRIDE;
148 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 148 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
149 virtual gfx::Size GetMaximumDialogSize() OVERRIDE;
149 virtual void AddObserver( 150 virtual void AddObserver(
150 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 151 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
151 virtual void RemoveObserver( 152 virtual void RemoveObserver(
152 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 153 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
153 154
154 Profile* profile() { return shell_window_->profile(); } 155 Profile* profile() { return shell_window_->profile(); }
155 content::WebContents* web_contents() { 156 content::WebContents* web_contents() {
156 return shell_window_->web_contents(); 157 return shell_window_->web_contents();
157 } 158 }
158 const extensions::Extension* extension() { 159 const extensions::Extension* extension() {
(...skipping 24 matching lines...) Expand all
183 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 184 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
184 185
185 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_; 186 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_;
186 187
187 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; 188 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_;
188 189
189 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); 190 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews);
190 }; 191 };
191 192
192 #endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_ 193 #endif // CHROME_BROWSER_UI_VIEWS_APPS_NATIVE_APP_WINDOW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698