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

Side by Side Diff: chrome/browser/ui/gtk/extensions/shell_window_gtk.cc

Issue 10822004: Draggable region support for frameless app window on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 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 | 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 #include "chrome/browser/ui/gtk/extensions/shell_window_gtk.h" 5 #include "chrome/browser/ui/gtk/extensions/shell_window_gtk.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/common/extensions/extension.h" 8 #include "chrome/common/extensions/extension.h"
9 #include "content/public/browser/render_view_host.h" 9 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/render_widget_host_view.h" 10 #include "content/public/browser/render_widget_host_view.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 gtk_window_deiconify(window_); 144 gtk_window_deiconify(window_);
145 } 145 }
146 146
147 void ShellWindowGtk::SetBounds(const gfx::Rect& bounds) { 147 void ShellWindowGtk::SetBounds(const gfx::Rect& bounds) {
148 gtk_window_move(window_, bounds.x(), bounds.y()); 148 gtk_window_move(window_, bounds.x(), bounds.y());
149 // TODO(mihaip): Do we need the same workaround as BrowserWindowGtk:: 149 // TODO(mihaip): Do we need the same workaround as BrowserWindowGtk::
150 // SetWindowSize in order to avoid triggering fullscreen mode? 150 // SetWindowSize in order to avoid triggering fullscreen mode?
151 gtk_window_resize(window_, bounds.width(), bounds.height()); 151 gtk_window_resize(window_, bounds.width(), bounds.height());
152 } 152 }
153 153
154 void ShellWindowGtk::SetDraggableRegion(SkRegion* region) {
155 // TODO: implement
156 }
157
158 void ShellWindowGtk::FlashFrame(bool flash) { 154 void ShellWindowGtk::FlashFrame(bool flash) {
159 gtk_window_set_urgency_hint(window_, flash); 155 gtk_window_set_urgency_hint(window_, flash);
160 } 156 }
161 157
162 bool ShellWindowGtk::IsAlwaysOnTop() const { 158 bool ShellWindowGtk::IsAlwaysOnTop() const {
163 return false; 159 return false;
164 } 160 }
165 161
166 void ShellWindowGtk::ActiveWindowChanged(GdkWindow* active_window) { 162 void ShellWindowGtk::ActiveWindowChanged(GdkWindow* active_window) {
167 // Do nothing if we're in the process of closing the browser window. 163 // Do nothing if we're in the process of closing the browser window.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 return content_thinks_its_fullscreen_; 216 return content_thinks_its_fullscreen_;
221 } 217 }
222 218
223 // static 219 // static
224 ShellWindow* ShellWindow::CreateImpl(Profile* profile, 220 ShellWindow* ShellWindow::CreateImpl(Profile* profile,
225 const extensions::Extension* extension, 221 const extensions::Extension* extension,
226 const GURL& url, 222 const GURL& url,
227 const ShellWindow::CreateParams& params) { 223 const ShellWindow::CreateParams& params) {
228 return new ShellWindowGtk(profile, extension, url, params); 224 return new ShellWindowGtk(profile, extension, url, params);
229 } 225 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698