Add OnLoadingStateChanged for NativeWindowObserver.

This commit is contained in:
Cheng Zhao 2013-08-29 11:17:15 +08:00
parent 3be4a01963
commit dbdf2d8d54
3 changed files with 11 additions and 0 deletions

View file

@ -250,6 +250,13 @@ void NativeWindow::DeactivateContents(content::WebContents* contents) {
BlurWebView();
}
void NativeWindow::LoadingStateChanged(content::WebContents* source) {
bool is_loading = source->IsLoading();
FOR_EACH_OBSERVER(NativeWindowObserver,
observers_,
OnLoadingStateChanged(is_loading));
}
void NativeWindow::MoveContents(content::WebContents* source,
const gfx::Rect& pos) {
SetPosition(pos.origin());