1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/views/controls/webview/webview.h"
12 class StatusBubbleViews
;
14 // ContentsWebView is used to present WebContents of active tab.
15 class ContentsWebView
: public views::WebView
{
17 explicit ContentsWebView(content::BrowserContext
* browser_context
);
18 virtual ~ContentsWebView();
20 // Sets the status bubble, which should be repositioned every time
21 // this view changes visible bounds.
22 void SetStatusBubble(StatusBubbleViews
* status_bubble
);
24 // views::View overrides:
25 virtual bool NeedsNotificationWhenVisibleBoundsChange() const OVERRIDE
;
26 virtual void OnVisibleBoundsChanged() OVERRIDE
;
29 StatusBubbleViews
* status_bubble_
;
31 DISALLOW_COPY_AND_ASSIGN(ContentsWebView
);
34 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_CONTENTS_WEB_VIEW_H_