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

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

Issue 11205004: Fix bug 145175: [Win] Frameless app windows are not resizable if no draggable region is specified (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land Created 8 years, 2 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 | Annotate | Revision Log
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_SHELL_WINDOW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_
7 7
8 #include "chrome/browser/ui/base_window.h" 8 #include "chrome/browser/ui/base_window.h"
9 #include "chrome/browser/ui/extensions/native_shell_window.h" 9 #include "chrome/browser/ui/extensions/native_shell_window.h"
10 #include "chrome/browser/ui/extensions/shell_window.h" 10 #include "chrome/browser/ui/extensions/shell_window.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // NativeShellWindow implementation. 105 // NativeShellWindow implementation.
106 virtual void SetFullscreen(bool fullscreen) OVERRIDE; 106 virtual void SetFullscreen(bool fullscreen) OVERRIDE;
107 virtual bool IsFullscreenOrPending() const OVERRIDE; 107 virtual bool IsFullscreenOrPending() const OVERRIDE;
108 virtual void UpdateWindowIcon() OVERRIDE; 108 virtual void UpdateWindowIcon() OVERRIDE;
109 virtual void UpdateWindowTitle() OVERRIDE; 109 virtual void UpdateWindowTitle() OVERRIDE;
110 virtual void UpdateDraggableRegions( 110 virtual void UpdateDraggableRegions(
111 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; 111 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
112 virtual void HandleKeyboardEvent( 112 virtual void HandleKeyboardEvent(
113 const content::NativeWebKeyboardEvent& event) OVERRIDE; 113 const content::NativeWebKeyboardEvent& event) OVERRIDE;
114 virtual void RenderViewHostChanged() OVERRIDE;
114 115
115 void OnViewWasResized(); 116 void OnViewWasResized();
116 117
117 ShellWindow* shell_window_; // weak - ShellWindow owns NativeShellWindow. 118 ShellWindow* shell_window_; // weak - ShellWindow owns NativeShellWindow.
118 119
119 views::WebView* web_view_; 120 views::WebView* web_view_;
120 views::Widget* window_; 121 views::Widget* window_;
121 bool is_fullscreen_; 122 bool is_fullscreen_;
122 123
123 scoped_ptr<SkRegion> draggable_region_; 124 scoped_ptr<SkRegion> draggable_region_;
124 125
125 bool frameless_; 126 bool frameless_;
126 gfx::Size minimum_size_; 127 gfx::Size minimum_size_;
127 gfx::Size maximum_size_; 128 gfx::Size maximum_size_;
128 129
129 // The class that registers for keyboard shortcuts for extension commands. 130 // The class that registers for keyboard shortcuts for extension commands.
130 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_; 131 scoped_ptr<ExtensionKeybindingRegistryViews> extension_keybinding_registry_;
131 132
132 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_; 133 UnhandledKeyboardEventHandler unhandled_keyboard_event_handler_;
133 134
134 DISALLOW_COPY_AND_ASSIGN(ShellWindowViews); 135 DISALLOW_COPY_AND_ASSIGN(ShellWindowViews);
135 }; 136 };
136 137
137 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ 138 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/extensions/shell_window_gtk.h ('k') | chrome/browser/ui/views/extensions/shell_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698