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

Side by Side Diff: chrome/browser/ui/extensions/native_app_window.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: 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_EXTENSIONS_NATIVE_APP_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_ 6 #define CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_
7 7
8 #include "chrome/browser/ui/extensions/shell_window.h" 8 #include "chrome/browser/ui/extensions/shell_window.h"
9 #include "components/web_modal/web_contents_modal_dialog_host.h" 9 #include "components/web_modal/web_contents_modal_dialog_host.h"
10 #include "ui/base/base_window.h" 10 #include "ui/base/base_window.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const content::NativeWebKeyboardEvent& event) = 0; 42 const content::NativeWebKeyboardEvent& event) = 0;
43 43
44 // TODO(jianli): once http://crbug.com/123007 is fixed, we'll no longer need 44 // TODO(jianli): once http://crbug.com/123007 is fixed, we'll no longer need
45 // this. 45 // this.
46 virtual void RenderViewHostChanged() = 0; 46 virtual void RenderViewHostChanged() = 0;
47 47
48 // Returns the difference between the window bounds (including titlebar and 48 // Returns the difference between the window bounds (including titlebar and
49 // borders) and the content bounds, if any. 49 // borders) and the content bounds, if any.
50 virtual gfx::Insets GetFrameInsets() const = 0; 50 virtual gfx::Insets GetFrameInsets() const = 0;
51 51
52 // Returns the work area on the screen for the window.
53 virtual gfx::Rect GetWindowWorkArea() const = 0;
54
52 virtual ~NativeAppWindow() {} 55 virtual ~NativeAppWindow() {}
53 }; 56 };
54 57
55 #endif // CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_ 58 #endif // CHROME_BROWSER_UI_EXTENSIONS_NATIVE_APP_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698