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

Side by Side Diff: ui/views/test/test_views_delegate.h

Issue 100303005: Ensure that reposting mouse events on Windows posts the message natively via the PostMessage API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 5 #ifndef UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 virtual void NotifyMenuItemFocused(const string16& menu_name, 44 virtual void NotifyMenuItemFocused(const string16& menu_name,
45 const string16& menu_item_name, 45 const string16& menu_item_name,
46 int item_index, 46 int item_index,
47 int item_count, 47 int item_count,
48 bool has_submenu) OVERRIDE {} 48 bool has_submenu) OVERRIDE {}
49 #if defined(OS_WIN) 49 #if defined(OS_WIN)
50 virtual HICON GetDefaultWindowIcon() const OVERRIDE { 50 virtual HICON GetDefaultWindowIcon() const OVERRIDE {
51 return NULL; 51 return NULL;
52 } 52 }
53
54 virtual bool IsWindowInMetro(gfx::NativeWindow window) const {
55 return false;
56 }
53 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS) 57 #elif defined(OS_LINUX) && !defined(OS_CHROMEOS)
54 virtual gfx::ImageSkia* GetDefaultWindowIcon() const OVERRIDE; 58 virtual gfx::ImageSkia* GetDefaultWindowIcon() const OVERRIDE;
55 #endif 59 #endif
56 virtual NonClientFrameView* CreateDefaultNonClientFrameView( 60 virtual NonClientFrameView* CreateDefaultNonClientFrameView(
57 Widget* widget) OVERRIDE; 61 Widget* widget) OVERRIDE;
58 virtual bool UseTransparentWindows() const OVERRIDE; 62 virtual bool UseTransparentWindows() const OVERRIDE;
59 virtual void AddRef() OVERRIDE {} 63 virtual void AddRef() OVERRIDE {}
60 virtual void ReleaseRef() OVERRIDE {} 64 virtual void ReleaseRef() OVERRIDE {}
61 virtual content::WebContents* CreateWebContents( 65 virtual content::WebContents* CreateWebContents(
62 content::BrowserContext* browser_context, 66 content::BrowserContext* browser_context,
63 content::SiteInstance* site_instance) OVERRIDE; 67 content::SiteInstance* site_instance) OVERRIDE;
64 virtual void OnBeforeWidgetInit( 68 virtual void OnBeforeWidgetInit(
65 Widget::InitParams* params, 69 Widget::InitParams* params,
66 internal::NativeWidgetDelegate* delegate) OVERRIDE; 70 internal::NativeWidgetDelegate* delegate) OVERRIDE;
67 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE; 71 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE;
68 72
69 private: 73 private:
70 bool use_transparent_windows_; 74 bool use_transparent_windows_;
71 75
72 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); 76 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
73 }; 77 };
74 78
75 } // namespace views 79 } // namespace views
76 80
77 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 81 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698