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

Side by Side Diff: chrome/browser/chromeos/login/web_page_view.h

Issue 8638016: Add OVERRIDE to chrome/browser/chromeos/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CHROMEOS_LOGIN_WEB_PAGE_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h"
11 #include "base/timer.h" 12 #include "base/timer.h"
12 #include "chrome/browser/ui/views/dom_view.h" 13 #include "chrome/browser/ui/views/dom_view.h"
13 #include "content/browser/tab_contents/tab_contents.h" 14 #include "content/browser/tab_contents/tab_contents.h"
14 #include "views/view.h" 15 #include "views/view.h"
15 16
16 class Profile; 17 class Profile;
17 class TabContentsDelegate; 18 class TabContentsDelegate;
18 19
19 namespace views { 20 namespace views {
20 class Label; 21 class Label;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 void SetWebPageDelegate(WebPageDelegate* delegate); 109 void SetWebPageDelegate(WebPageDelegate* delegate);
109 110
110 // Stops throbber and shows page content (starts renderer_timer_ for that). 111 // Stops throbber and shows page content (starts renderer_timer_ for that).
111 void ShowPageContent(); 112 void ShowPageContent();
112 113
113 protected: 114 protected:
114 virtual WebPageDomView* dom_view() = 0; 115 virtual WebPageDomView* dom_view() = 0;
115 116
116 private: 117 private:
117 // Overriden from views::View: 118 // Overriden from views::View:
118 virtual void Layout(); 119 virtual void Layout() OVERRIDE;
119 120
120 // Called by stop_timer_. Shows rendered page. 121 // Called by stop_timer_. Shows rendered page.
121 void ShowRenderedPage(); 122 void ShowRenderedPage();
122 123
123 // Called by start_timer_. Shows throbber and waiting label. 124 // Called by start_timer_. Shows throbber and waiting label.
124 void ShowWaitingControls(); 125 void ShowWaitingControls();
125 126
126 // Throbber shown during page load. 127 // Throbber shown during page load.
127 views::Throbber* throbber_; 128 views::Throbber* throbber_;
128 129
129 // "Connecting..." label shown while waiting for the page to load/render. 130 // "Connecting..." label shown while waiting for the page to load/render.
130 views::Label* connecting_label_; 131 views::Label* connecting_label_;
131 132
132 // Timer used when waiting for network response. 133 // Timer used when waiting for network response.
133 base::OneShotTimer<WebPageView> start_timer_; 134 base::OneShotTimer<WebPageView> start_timer_;
134 135
135 // Timer used before toggling loaded page visibility. 136 // Timer used before toggling loaded page visibility.
136 base::OneShotTimer<WebPageView> stop_timer_; 137 base::OneShotTimer<WebPageView> stop_timer_;
137 138
138 DISALLOW_COPY_AND_ASSIGN(WebPageView); 139 DISALLOW_COPY_AND_ASSIGN(WebPageView);
139 }; 140 };
140 141
141 } // namespace chromeos 142 } // namespace chromeos
142 143
143 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_VIEW_H_ 144 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WEB_PAGE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698