Move loading events to webContents.

This commit is contained in:
Cheng Zhao 2014-04-25 12:22:16 +08:00
parent 744895f9d8
commit 4135040449
8 changed files with 31 additions and 36 deletions

View file

@ -424,13 +424,6 @@ 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());