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

Side by Side Diff: chrome/browser/ui/views/tab_contents/tab_contents_view_views.h

Issue 9565042: Remove obsolete code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 | « no previous file | chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc » ('j') | 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) 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_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/timer.h" 11 #include "base/timer.h"
12 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate .h" 12 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate .h"
13 #include "content/browser/tab_contents/tab_contents_view_helper.h" 13 #include "content/browser/tab_contents/tab_contents_view_helper.h"
14 #include "content/public/browser/web_contents_view.h" 14 #include "content/public/browser/web_contents_view.h"
15 #include "ui/views/widget/widget.h" 15 #include "ui/views/widget/widget.h"
16 16
17 class ConstrainedWindowGtk;
18 class NativeTabContentsView; 17 class NativeTabContentsView;
19 class RenderViewContextMenuViews; 18 class RenderViewContextMenuViews;
20 class SkBitmap; 19 class SkBitmap;
21 struct WebDropData; 20 struct WebDropData;
22 namespace gfx { 21 namespace gfx {
23 class Point; 22 class Point;
24 class Size; 23 class Size;
25 } 24 }
26 namespace views { 25 namespace views {
27 class Widget; 26 class Widget;
28 } 27 }
29 28
30 // Views-specific implementation of the WebContentsView. 29 // Views-specific implementation of the WebContentsView.
31 class TabContentsViewViews : public views::Widget, 30 class TabContentsViewViews : public views::Widget,
32 public content::WebContentsView, 31 public content::WebContentsView,
33 public internal::NativeTabContentsViewDelegate { 32 public internal::NativeTabContentsViewDelegate {
34 public: 33 public:
35 // The corresponding WebContents is passed in the constructor, and manages our 34 // The corresponding WebContents is passed in the constructor, and manages our
36 // lifetime. This doesn't need to be the case, but is this way currently 35 // lifetime. This doesn't need to be the case, but is this way currently
37 // because that's what was easiest when they were split. 36 // because that's what was easiest when they were split.
38 explicit TabContentsViewViews(content::WebContents* web_contents); 37 explicit TabContentsViewViews(content::WebContents* web_contents);
39 virtual ~TabContentsViewViews(); 38 virtual ~TabContentsViewViews();
40 39
41 // Intermediate code to pass comiplation. This will be removed as a
42 // part of ConstraintWindow change (http://codereview.chromium.org/7631049).
43 void AttachConstrainedWindow(ConstrainedWindowGtk* constrained_window);
44 void RemoveConstrainedWindow(ConstrainedWindowGtk* constrained_window);
45
46 // Reset the native parent of this view to NULL. Unparented windows should 40 // Reset the native parent of this view to NULL. Unparented windows should
47 // not receive any messages. 41 // not receive any messages.
48 virtual void Unparent(); 42 virtual void Unparent();
49 43
50 NativeTabContentsView* native_tab_contents_view() const { 44 NativeTabContentsView* native_tab_contents_view() const {
51 return native_tab_contents_view_; 45 return native_tab_contents_view_;
52 } 46 }
53 47
54 // Overridden from WebContentsView: 48 // Overridden from WebContentsView:
55 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE; 49 virtual void CreateView(const gfx::Size& initial_size) OVERRIDE;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 mutable const views::FocusManager* focus_manager_; 165 mutable const views::FocusManager* focus_manager_;
172 166
173 // The overlaid view. Owned by the caller of |InstallOverlayView|; this is a 167 // The overlaid view. Owned by the caller of |InstallOverlayView|; this is a
174 // weak reference. 168 // weak reference.
175 views::Widget* overlaid_view_; 169 views::Widget* overlaid_view_;
176 170
177 DISALLOW_COPY_AND_ASSIGN(TabContentsViewViews); 171 DISALLOW_COPY_AND_ASSIGN(TabContentsViewViews);
178 }; 172 };
179 173
180 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_ 174 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698