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

Side by Side Diff: chrome/browser/ui/views/html_dialog_view.h

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. 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 | « chrome/browser/ui/views/find_bar_host.cc ('k') | chrome/browser/ui/views/html_dialog_view.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_HTML_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 WindowOpenDisposition disposition, 97 WindowOpenDisposition disposition,
98 const gfx::Rect& initial_pos, 98 const gfx::Rect& initial_pos,
99 bool user_gesture) OVERRIDE; 99 bool user_gesture) OVERRIDE;
100 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE; 100 virtual void LoadingStateChanged(content::WebContents* source) OVERRIDE;
101 101
102 protected: 102 protected:
103 // Register accelerators for this dialog. 103 // Register accelerators for this dialog.
104 virtual void RegisterDialogAccelerators(); 104 virtual void RegisterDialogAccelerators();
105 105
106 // TabRenderWatcher::Delegate implementation. 106 // TabRenderWatcher::Delegate implementation.
107 virtual void OnRenderHostCreated(RenderViewHost* host) OVERRIDE; 107 virtual void OnRenderHostCreated(content::RenderViewHost* host) OVERRIDE;
108 virtual void OnTabMainFrameLoaded() OVERRIDE; 108 virtual void OnTabMainFrameLoaded() OVERRIDE;
109 virtual void OnTabMainFrameRender() OVERRIDE; 109 virtual void OnTabMainFrameRender() OVERRIDE;
110 110
111 private: 111 private:
112 FRIEND_TEST_ALL_PREFIXES(HtmlDialogBrowserTest, WebContentRendered); 112 FRIEND_TEST_ALL_PREFIXES(HtmlDialogBrowserTest, WebContentRendered);
113 113
114 // Whether the view is initialized. That is, dialog acceleartors is registered 114 // Whether the view is initialized. That is, dialog acceleartors is registered
115 // and FreezeUpdates property is set to prevent WM from showing the window 115 // and FreezeUpdates property is set to prevent WM from showing the window
116 // until the property is removed. 116 // until the property is removed.
117 bool initialized_; 117 bool initialized_;
118 118
119 // Watches for TabContents rendering. 119 // Watches for TabContents rendering.
120 scoped_ptr<TabRenderWatcher> tab_watcher_; 120 scoped_ptr<TabRenderWatcher> tab_watcher_;
121 121
122 // This view is a delegate to the HTML content since it needs to get notified 122 // This view is a delegate to the HTML content since it needs to get notified
123 // about when the dialog is closing. For all other actions (besides dialog 123 // about when the dialog is closing. For all other actions (besides dialog
124 // closing) we delegate to the creator of this view, which we keep track of 124 // closing) we delegate to the creator of this view, which we keep track of
125 // using this variable. 125 // using this variable.
126 HtmlDialogUIDelegate* delegate_; 126 HtmlDialogUIDelegate* delegate_;
127 127
128 // Controls lifetime of dialog. 128 // Controls lifetime of dialog.
129 scoped_ptr<HtmlDialogController> dialog_controller_; 129 scoped_ptr<HtmlDialogController> dialog_controller_;
130 130
131 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); 131 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView);
132 }; 132 };
133 133
134 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ 134 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/find_bar_host.cc ('k') | chrome/browser/ui/views/html_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698