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

Side by Side Diff: chrome/browser/ui/gtk/extensions/native_app_window_gtk.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: Rebase and revise as comments. 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_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual void SetFullscreen(bool fullscreen) OVERRIDE; 62 virtual void SetFullscreen(bool fullscreen) OVERRIDE;
63 virtual bool IsFullscreenOrPending() const OVERRIDE; 63 virtual bool IsFullscreenOrPending() const OVERRIDE;
64 virtual void UpdateWindowIcon() OVERRIDE; 64 virtual void UpdateWindowIcon() OVERRIDE;
65 virtual void UpdateWindowTitle() OVERRIDE; 65 virtual void UpdateWindowTitle() OVERRIDE;
66 virtual void HandleKeyboardEvent( 66 virtual void HandleKeyboardEvent(
67 const content::NativeWebKeyboardEvent& event) OVERRIDE; 67 const content::NativeWebKeyboardEvent& event) OVERRIDE;
68 virtual void UpdateDraggableRegions( 68 virtual void UpdateDraggableRegions(
69 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; 69 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
70 virtual void RenderViewHostChanged() OVERRIDE; 70 virtual void RenderViewHostChanged() OVERRIDE;
71 virtual gfx::Insets GetFrameInsets() const OVERRIDE; 71 virtual gfx::Insets GetFrameInsets() const OVERRIDE;
72 virtual gfx::Rect GetScreenBounds() const OVERRIDE;
72 73
73 // web_modal::WebContentsModalDialogHost implementation. 74 // web_modal::WebContentsModalDialogHost implementation.
74 virtual gfx::NativeView GetHostView() const OVERRIDE; 75 virtual gfx::NativeView GetHostView() const OVERRIDE;
75 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 76 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
76 virtual void AddObserver( 77 virtual void AddObserver(
77 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 78 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
78 virtual void RemoveObserver( 79 virtual void RemoveObserver(
79 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 80 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
80 81
81 content::WebContents* web_contents() const { 82 content::WebContents* web_contents() const {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_; 153 scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_;
153 154
154 // Observers to be notified when any web contents modal dialog requires 155 // Observers to be notified when any web contents modal dialog requires
155 // updating its dimensions. 156 // updating its dimensions.
156 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_; 157 ObserverList<web_modal::WebContentsModalDialogHostObserver> observer_list_;
157 158
158 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk); 159 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk);
159 }; 160 };
160 161
161 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_ 162 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698