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

Side by Side Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate.h

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 months 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_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_DELEGATE_H _ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_DELEGATE_H _
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_DELEGATE_H _ 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_DELEGATE_H _
7 #pragma once 7 #pragma once
8 8
9 class TabContents; 9 class TabContents;
10 namespace gfx{ 10 namespace gfx {
11 class Size; 11 class Size;
12 } 12 }
13 namespace views {
14 namespace internal {
15 class NativeWidgetDelegate;
16 }
17 }
13 18
14 namespace internal { 19 namespace internal {
15 20
16 class NativeTabContentsViewDelegate { 21 class NativeTabContentsViewDelegate {
17 public: 22 public:
18 virtual ~NativeTabContentsViewDelegate() {} 23 virtual ~NativeTabContentsViewDelegate() {}
19 24
20 virtual TabContents* GetTabContents() = 0; 25 virtual TabContents* GetTabContents() = 0;
21 26
22 // TODO(beng): 27 // TODO(beng):
23 // This can die with OnNativeTabContentsViewMouseDown/Move(). 28 // This can die with OnNativeTabContentsViewMouseDown/Move().
24 virtual bool IsShowingSadTab() const = 0; 29 virtual bool IsShowingSadTab() const = 0;
25 30
26 // TODO(beng): 31 // TODO(beng):
27 // These three can be replaced by Widget::OnSizeChanged and some new 32 // These three can be replaced by Widget::OnSizeChanged and some new
28 // notifications for show/hide. 33 // notifications for show/hide.
29 virtual void OnNativeTabContentsViewShown() = 0; 34 virtual void OnNativeTabContentsViewShown() = 0;
30 virtual void OnNativeTabContentsViewHidden() = 0; 35 virtual void OnNativeTabContentsViewHidden() = 0;
31 virtual void OnNativeTabContentsViewSized(const gfx::Size& size) = 0; 36 virtual void OnNativeTabContentsViewSized(const gfx::Size& size) = 0;
32 37
33 virtual void OnNativeTabContentsViewWheelZoom(int distance) = 0; 38 virtual void OnNativeTabContentsViewWheelZoom(bool zoom_in) = 0;
34 39
35 // TODO(beng): 40 // TODO(beng):
36 // These two can be replaced by an override of Widget::OnMouseEvent. 41 // These two can be replaced by an override of Widget::OnMouseEvent.
37 virtual void OnNativeTabContentsViewMouseDown() = 0; 42 virtual void OnNativeTabContentsViewMouseDown() = 0;
38 virtual void OnNativeTabContentsViewMouseMove() = 0; 43 virtual void OnNativeTabContentsViewMouseMove(bool motion) = 0;
39 44
40 virtual void OnNativeTabContentsViewDraggingEnded() = 0; 45 virtual void OnNativeTabContentsViewDraggingEnded() = 0;
46
47 virtual views::internal::NativeWidgetDelegate* AsNativeWidgetDelegate() = 0;
41 }; 48 };
42 49
43 } // namespace internal 50 } // namespace internal
44 51
45 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_DELEGAT E_H_ 52 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_NATIVE_TAB_CONTENTS_VIEW_DELEGAT E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698