| OLD | NEW |
| 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_widget_host_view.h" | 9 #include "content/public/browser/render_widget_host_view.h" |
| 10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool ShellWindowGtk::IsMinimized() const { | 56 bool ShellWindowGtk::IsMinimized() const { |
| 57 return (state_ & GDK_WINDOW_STATE_ICONIFIED); | 57 return (state_ & GDK_WINDOW_STATE_ICONIFIED); |
| 58 } | 58 } |
| 59 | 59 |
| 60 bool ShellWindowGtk::IsFullscreen() const { | 60 bool ShellWindowGtk::IsFullscreen() const { |
| 61 return false; | 61 return false; |
| 62 } | 62 } |
| 63 | 63 |
| 64 gfx::NativeWindow ShellWindowGtk::GetNativeWindow() { |
| 65 return window_; |
| 66 } |
| 67 |
| 64 gfx::Rect ShellWindowGtk::GetRestoredBounds() const { | 68 gfx::Rect ShellWindowGtk::GetRestoredBounds() const { |
| 65 return restored_bounds_; | 69 return restored_bounds_; |
| 66 } | 70 } |
| 67 | 71 |
| 68 gfx::Rect ShellWindowGtk::GetBounds() const { | 72 gfx::Rect ShellWindowGtk::GetBounds() const { |
| 69 return bounds_; | 73 return bounds_; |
| 70 } | 74 } |
| 71 | 75 |
| 72 void ShellWindowGtk::Show() { | 76 void ShellWindowGtk::Show() { |
| 73 gtk_window_present(window_); | 77 gtk_window_present(window_); |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 return FALSE; | 170 return FALSE; |
| 167 } | 171 } |
| 168 | 172 |
| 169 // static | 173 // static |
| 170 ShellWindow* ShellWindow::CreateImpl(Profile* profile, | 174 ShellWindow* ShellWindow::CreateImpl(Profile* profile, |
| 171 const extensions::Extension* extension, | 175 const extensions::Extension* extension, |
| 172 const GURL& url, | 176 const GURL& url, |
| 173 const ShellWindow::CreateParams params) { | 177 const ShellWindow::CreateParams params) { |
| 174 return new ShellWindowGtk(profile, extension, url, params); | 178 return new ShellWindowGtk(profile, extension, url, params); |
| 175 } | 179 } |
| OLD | NEW |