| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 virtual RenderWidgetHostView* CreateViewForWidget( | 39 virtual RenderWidgetHostView* CreateViewForWidget( |
| 40 RenderWidgetHost* render_widget_host); | 40 RenderWidgetHost* render_widget_host); |
| 41 virtual gfx::NativeView GetNativeView() const; | 41 virtual gfx::NativeView GetNativeView() const; |
| 42 virtual gfx::NativeView GetContentNativeView() const; | 42 virtual gfx::NativeView GetContentNativeView() const; |
| 43 virtual gfx::NativeWindow GetTopLevelNativeView() const; | 43 virtual gfx::NativeWindow GetTopLevelNativeView() const; |
| 44 virtual void GetContainerBounds(gfx::Rect* out) const; | 44 virtual void GetContainerBounds(gfx::Rect* out) const; |
| 45 virtual void OnContentsDestroy(); | 45 virtual void OnContentsDestroy(); |
| 46 virtual void SetPageTitle(const std::wstring& title); | 46 virtual void SetPageTitle(const std::wstring& title); |
| 47 virtual void Invalidate(); | 47 virtual void Invalidate(); |
| 48 virtual void SizeContents(const gfx::Size& size); | 48 virtual void SizeContents(const gfx::Size& size); |
| 49 virtual void OpenDeveloperTools(); |
| 50 virtual void ForwardMessageToDevToolsClient(const IPC::Message& message); |
| 49 virtual void FindInPage(const Browser& browser, | 51 virtual void FindInPage(const Browser& browser, |
| 50 bool find_next, bool forward_direction); | 52 bool find_next, bool forward_direction); |
| 51 virtual void HideFindBar(bool end_session); | 53 virtual void HideFindBar(bool end_session); |
| 52 virtual bool GetFindBarWindowInfo(gfx::Point* position, | 54 virtual bool GetFindBarWindowInfo(gfx::Point* position, |
| 53 bool* fully_visible) const; | 55 bool* fully_visible) const; |
| 54 | 56 |
| 55 // Backend implementation of RenderViewHostDelegate::View. | 57 // Backend implementation of RenderViewHostDelegate::View. |
| 56 virtual WebContents* CreateNewWindowInternal( | 58 virtual WebContents* CreateNewWindowInternal( |
| 57 int route_id, base::WaitableEvent* modal_dialog_event); | 59 int route_id, base::WaitableEvent* modal_dialog_event); |
| 58 virtual RenderWidgetHostView* CreateNewWidgetInternal(int route_id, | 60 virtual RenderWidgetHostView* CreateNewWidgetInternal(int route_id, |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 NotificationRegistrar registrar_; | 98 NotificationRegistrar registrar_; |
| 97 | 99 |
| 98 // Used to render the sad tab. This will be non-NULL only when the sad tab is | 100 // Used to render the sad tab. This will be non-NULL only when the sad tab is |
| 99 // visible. | 101 // visible. |
| 100 scoped_cftyperef<SadTabView*> sad_tab_; | 102 scoped_cftyperef<SadTabView*> sad_tab_; |
| 101 | 103 |
| 102 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); | 104 DISALLOW_COPY_AND_ASSIGN(WebContentsViewMac); |
| 103 }; | 105 }; |
| 104 | 106 |
| 105 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ | 107 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_CONTENTS_VIEW_MAC_H_ |
| OLD | NEW |