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

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

Issue 10443075: Coverity PASS_BY_VALUE fix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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
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_SHELL_WINDOW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include "chrome/browser/ui/extensions/shell_window.h" 11 #include "chrome/browser/ui/extensions/shell_window.h"
12 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" 12 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h"
13 #include "ui/base/gtk/gtk_signal.h" 13 #include "ui/base/gtk/gtk_signal.h"
14 #include "ui/base/x/active_window_watcher_x_observer.h" 14 #include "ui/base/x/active_window_watcher_x_observer.h"
15 #include "ui/gfx/rect.h" 15 #include "ui/gfx/rect.h"
16 16
17 class Profile; 17 class Profile;
18 18
19 namespace extensions { 19 namespace extensions {
20 class Extension; 20 class Extension;
21 } 21 }
22 22
23 class ShellWindowGtk : public ShellWindow, 23 class ShellWindowGtk : public ShellWindow,
24 public ExtensionViewGtk::Container, 24 public ExtensionViewGtk::Container,
25 public ui::ActiveWindowWatcherXObserver { 25 public ui::ActiveWindowWatcherXObserver {
26 public: 26 public:
27 ShellWindowGtk(Profile* profile, 27 ShellWindowGtk(Profile* profile,
28 const extensions::Extension* extension, 28 const extensions::Extension* extension,
29 const GURL& url, 29 const GURL& url,
30 const CreateParams params); 30 const CreateParams& params);
31 31
32 // BaseWindow implementation. 32 // BaseWindow implementation.
33 virtual bool IsActive() const OVERRIDE; 33 virtual bool IsActive() const OVERRIDE;
34 virtual bool IsMaximized() const OVERRIDE; 34 virtual bool IsMaximized() const OVERRIDE;
35 virtual bool IsMinimized() const OVERRIDE; 35 virtual bool IsMinimized() const OVERRIDE;
36 virtual bool IsFullscreen() const OVERRIDE; 36 virtual bool IsFullscreen() const OVERRIDE;
37 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; 37 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE;
38 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; 38 virtual gfx::Rect GetRestoredBounds() const OVERRIDE;
39 virtual gfx::Rect GetBounds() const OVERRIDE; 39 virtual gfx::Rect GetBounds() const OVERRIDE;
40 virtual void Show() OVERRIDE; 40 virtual void Show() OVERRIDE;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // The position and size of the current window. 74 // The position and size of the current window.
75 gfx::Rect bounds_; 75 gfx::Rect bounds_;
76 76
77 // The position and size of the non-maximized, non-fullscreen window. 77 // The position and size of the non-maximized, non-fullscreen window.
78 gfx::Rect restored_bounds_; 78 gfx::Rect restored_bounds_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk); 80 DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk);
81 }; 81 };
82 82
83 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_ 83 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/extensions/shell_window.cc ('k') | chrome/browser/ui/gtk/extensions/shell_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698