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

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

Issue 17378003: [WIN]Save work area of window and adjust bounds to ensure it fit on screen before show. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test cases. Created 7 years, 6 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 (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/extensions/native_app_window.h" 9 #include "chrome/browser/ui/extensions/native_app_window.h"
10 #include "chrome/browser/ui/extensions/shell_window.h" 10 #include "chrome/browser/ui/extensions/shell_window.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 virtual bool IsFullscreenOrPending() const OVERRIDE; 130 virtual bool IsFullscreenOrPending() const OVERRIDE;
131 virtual bool IsDetached() const OVERRIDE; 131 virtual bool IsDetached() const OVERRIDE;
132 virtual void UpdateWindowIcon() OVERRIDE; 132 virtual void UpdateWindowIcon() OVERRIDE;
133 virtual void UpdateWindowTitle() OVERRIDE; 133 virtual void UpdateWindowTitle() OVERRIDE;
134 virtual void UpdateDraggableRegions( 134 virtual void UpdateDraggableRegions(
135 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; 135 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
136 virtual void HandleKeyboardEvent( 136 virtual void HandleKeyboardEvent(
137 const content::NativeWebKeyboardEvent& event) OVERRIDE; 137 const content::NativeWebKeyboardEvent& event) OVERRIDE;
138 virtual void RenderViewHostChanged() OVERRIDE; 138 virtual void RenderViewHostChanged() OVERRIDE;
139 virtual gfx::Insets GetFrameInsets() const OVERRIDE; 139 virtual gfx::Insets GetFrameInsets() const OVERRIDE;
140 virtual gfx::Rect GetScreenBounds() const OVERRIDE;
140 141
141 // web_modal::WebContentsModalDialogHost implementation. 142 // web_modal::WebContentsModalDialogHost implementation.
142 virtual gfx::NativeView GetHostView() const OVERRIDE; 143 virtual gfx::NativeView GetHostView() const OVERRIDE;
143 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 144 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
144 virtual void AddObserver( 145 virtual void AddObserver(
145 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 146 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
146 virtual void RemoveObserver( 147 virtual void RemoveObserver(
147 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 148 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
148 149
149 Profile* profile() { return shell_window_->profile(); } 150 Profile* profile() { return shell_window_->profile(); }
(...skipping 24 matching lines...) Expand all
174 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 175 views::UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
175 176
176 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_; 177 base::WeakPtrFactory<NativeAppWindowViews> weak_ptr_factory_;
177 178
178 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; 179 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_;
179 180
180 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews); 181 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowViews);
181 }; 182 };
182 183
183 #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