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

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

Issue 577533003: Revert of 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: 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;
181 virtual void OnWindowVisibilityChanged(aura::Window* window, 183 virtual void OnWindowVisibilityChanged(aura::Window* window,
182 bool visible) OVERRIDE; 184 bool visible) OVERRIDE;
183 185
184 // Update the web contents visiblity. 186 // Update the web contents visiblity.
185 void UpdateWebContentsVisibility(bool visible); 187 void UpdateWebContentsVisibility(bool visible);
186 188
187 scoped_ptr<aura::Window> window_; 189 scoped_ptr<aura::Window> window_;
188 190
189 // The window that shows the screenshot of the history page during an 191 // The window that shows the screenshot of the history page during an
190 // overscroll navigation gesture. 192 // overscroll navigation gesture.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // On Windows we can run into problems if resources get released within the 232 // On Windows we can run into problems if resources get released within the
231 // initialization phase while the content (and its dimensions) are not known. 233 // initialization phase while the content (and its dimensions) are not known.
232 bool is_or_was_visible_; 234 bool is_or_was_visible_;
233 235
234 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura); 236 DISALLOW_COPY_AND_ASSIGN(WebContentsViewAura);
235 }; 237 };
236 238
237 } // namespace content 239 } // namespace content
238 240
239 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_AURA_H_ 241 #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