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

Side by Side Diff: content/browser/web_contents/web_contents_view_aura.h

Issue 564553002: When we switch tabs in chrome, the tab being switched away from gets hidden/shown/hidden. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments Created 6 years, 3 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/web_contents/web_contents_view_aura.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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; 171 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
172 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; 172 virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE;
173 173
174 // Overridden from aura::client::DragDropDelegate: 174 // Overridden from aura::client::DragDropDelegate:
175 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; 175 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE;
176 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; 176 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE;
177 virtual void OnDragExited() OVERRIDE; 177 virtual void OnDragExited() OVERRIDE;
178 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; 178 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
179 179
180 // Overridden from aura::WindowObserver: 180 // Overridden from aura::WindowObserver:
181 virtual void OnWindowParentChanged(aura::Window* window,
182 aura::Window* parent) OVERRIDE;
183 virtual void OnWindowVisibilityChanged(aura::Window* window, 181 virtual void OnWindowVisibilityChanged(aura::Window* window,
184 bool visible) OVERRIDE; 182 bool visible) OVERRIDE;
185 183
186 // Update the web contents visiblity. 184 // Update the web contents visiblity.
187 void UpdateWebContentsVisibility(bool visible); 185 void UpdateWebContentsVisibility(bool visible);
188 186
189 scoped_ptr<aura::Window> window_; 187 scoped_ptr<aura::Window> window_;
190 188
191 // The window that shows the screenshot of the history page during an 189 // The window that shows the screenshot of the history page during an
192 // overscroll navigation gesture. 190 // overscroll navigation gesture.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // On Windows we can run into problems if resources get released within the 230 // On Windows we can run into problems if resources get released within the
233 // initialization phase while the content (and its dimensions) are not known. 231 // initialization phase while the content (and its dimensions) are not known.
234 bool is_or_was_visible_; 232 bool is_or_was_visible_;
235 233
236 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); 234 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura);
237 }; 235 };
238 236
239 } // namespace content 237 } // namespace content
240 238
241 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 239 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698