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

Side by Side Diff: chrome/browser/ui/panels/panel_host.h

Issue 161113002: Fix pushState causing stop/reload button and favicon to flicker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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_PANELS_PANEL_HOST_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/public/browser/web_contents_delegate.h" 10 #include "content/public/browser/web_contents_delegate.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void NavigationStateChanged(const content::WebContents* source, 54 virtual void NavigationStateChanged(const content::WebContents* source,
55 unsigned changed_flags) OVERRIDE; 55 unsigned changed_flags) OVERRIDE;
56 virtual void AddNewContents(content::WebContents* source, 56 virtual void AddNewContents(content::WebContents* source,
57 content::WebContents* new_contents, 57 content::WebContents* new_contents,
58 WindowOpenDisposition disposition, 58 WindowOpenDisposition disposition,
59 const gfx::Rect& initial_pos, 59 const gfx::Rect& initial_pos,
60 bool user_gesture, 60 bool user_gesture,
61 bool* was_blocked) OVERRIDE; 61 bool* was_blocked) OVERRIDE;
62 virtual void ActivateContents(content::WebContents* contents) OVERRIDE; 62 virtual void ActivateContents(content::WebContents* contents) OVERRIDE;
63 virtual void DeactivateContents(content::WebContents* contents) OVERRIDE; 63 virtual void DeactivateContents(content::WebContents* contents) OVERRIDE;
64 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; 64 virtual void LoadingStateChanged(content::WebContents* source,
65 bool to_different_document) OVERRIDE;
65 virtual void CloseContents(content::WebContents* source) OVERRIDE; 66 virtual void CloseContents(content::WebContents* source) OVERRIDE;
66 virtual void MoveContents(content::WebContents* source, 67 virtual void MoveContents(content::WebContents* source,
67 const gfx::Rect& pos) OVERRIDE; 68 const gfx::Rect& pos) OVERRIDE;
68 virtual bool IsPopupOrPanel( 69 virtual bool IsPopupOrPanel(
69 const content::WebContents* source) const OVERRIDE; 70 const content::WebContents* source) const OVERRIDE;
70 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE; 71 virtual void ContentsZoomChange(bool zoom_in) OVERRIDE;
71 virtual void HandleKeyboardEvent( 72 virtual void HandleKeyboardEvent(
72 content::WebContents* source, 73 content::WebContents* source,
73 const content::NativeWebKeyboardEvent& event) OVERRIDE; 74 const content::NativeWebKeyboardEvent& event) OVERRIDE;
74 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; 75 virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 108
108 scoped_ptr<content::WebContents> web_contents_; 109 scoped_ptr<content::WebContents> web_contents_;
109 110
110 // The following factory is used to close the panel via the message loop. 111 // The following factory is used to close the panel via the message loop.
111 base::WeakPtrFactory<PanelHost> weak_factory_; 112 base::WeakPtrFactory<PanelHost> weak_factory_;
112 113
113 DISALLOW_COPY_AND_ASSIGN(PanelHost); 114 DISALLOW_COPY_AND_ASSIGN(PanelHost);
114 }; 115 };
115 116
116 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_ 117 #endif // CHROME_BROWSER_UI_PANELS_PANEL_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/web_dialog_window_controller.mm ('k') | chrome/browser/ui/panels/panel_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698