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

Side by Side Diff: views/window/window_gtk.cc

Issue 115827: More Linux linking issues fixed. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « views/views.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "views/window/window_gtk.h" 5 #include "views/window/window_gtk.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/gfx/rect.h" 8 #include "base/gfx/rect.h"
9 #include "views/window/custom_frame_view.h" 9 #include "views/window/custom_frame_view.h"
10 #include "views/window/non_client_view.h" 10 #include "views/window/non_client_view.h"
11 #include "views/window/window_delegate.h" 11 #include "views/window/window_delegate.h"
12 12
13 namespace views { 13 namespace views {
14 14
15 WindowGtk::~WindowGtk() { 15 WindowGtk::~WindowGtk() {
16 } 16 }
17 17
18 // static 18 // static
19 Window* Window::CreateChromeWindow(gfx::NativeWindow parent, 19 Window* Window::CreateChromeWindow(gfx::NativeWindow parent,
20 const gfx::Rect& bounds, 20 const gfx::Rect& bounds,
21 WindowDelegate* window_delegate) { 21 WindowDelegate* window_delegate) {
22 WindowGtk* window = new WindowGtk(window_delegate); 22 WindowGtk* window = new WindowGtk(window_delegate);
23 window->GetNonClientView()->SetFrameView(window->CreateFrameViewForWindow()); 23 window->GetNonClientView()->SetFrameView(window->CreateFrameViewForWindow());
24 window->Init(bounds); 24 window->Init(bounds);
25 return window; 25 return window;
26 } 26 }
27 27
28 // static
29 void Window::CloseAllSecondaryWindows() {
30 NOTIMPLEMENTED();
31 }
32
28 gfx::Rect WindowGtk::GetBounds() const { 33 gfx::Rect WindowGtk::GetBounds() const {
29 gfx::Rect bounds; 34 gfx::Rect bounds;
30 WidgetGtk::GetBounds(&bounds, true); 35 WidgetGtk::GetBounds(&bounds, true);
31 return bounds; 36 return bounds;
32 } 37 }
33 38
34 gfx::Rect WindowGtk::GetNormalBounds() const { 39 gfx::Rect WindowGtk::GetNormalBounds() const {
35 NOTIMPLEMENTED(); 40 NOTIMPLEMENTED();
36 return GetBounds(); 41 return GetBounds();
37 } 42 }
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 void WindowGtk::CallWindowStateEvent(GtkWidget* widget, 241 void WindowGtk::CallWindowStateEvent(GtkWidget* widget,
237 GdkEventWindowState* window_state) { 242 GdkEventWindowState* window_state) {
238 WindowGtk* window_gtk = GetWindowForNative(widget); 243 WindowGtk* window_gtk = GetWindowForNative(widget);
239 window_gtk->window_maximized_ = 244 window_gtk->window_maximized_ =
240 window_state->new_window_state & GDK_WINDOW_STATE_MAXIMIZED; 245 window_state->new_window_state & GDK_WINDOW_STATE_MAXIMIZED;
241 window_gtk->window_minimized_ = 246 window_gtk->window_minimized_ =
242 window_state->new_window_state & GDK_WINDOW_STATE_ICONIFIED; 247 window_state->new_window_state & GDK_WINDOW_STATE_ICONIFIED;
243 } 248 }
244 249
245 } // namespace views 250 } // namespace views
OLDNEW
« no previous file with comments | « views/views.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698