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

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

Issue 8632001: Removed TOUCH_UI (mostly constants) from chrome/browser/ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 1 month 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_TAB_CONTENTS_CONTAINER_NATIVE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_NATIVE_H_
6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_NATIVE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_NATIVE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container.h" 9 #include "chrome/browser/ui/views/tab_contents/native_tab_contents_container.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void SetReservedContentsRect(const gfx::Rect& reserved_rect); 42 void SetReservedContentsRect(const gfx::Rect& reserved_rect);
43 43
44 // Overridden from content::NotificationObserver: 44 // Overridden from content::NotificationObserver:
45 virtual void Observe(int type, 45 virtual void Observe(int type,
46 const content::NotificationSource& source, 46 const content::NotificationSource& source,
47 const content::NotificationDetails& details) OVERRIDE; 47 const content::NotificationDetails& details) OVERRIDE;
48 48
49 // Overridden from views::View: 49 // Overridden from views::View:
50 virtual void Layout() OVERRIDE; 50 virtual void Layout() OVERRIDE;
51 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 51 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
52 #if defined(TOUCH_UI)
53 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
54 #endif
55 52
56 protected: 53 protected:
57 // Overridden from views::View: 54 // Overridden from views::View:
58 virtual void ViewHierarchyChanged(bool is_add, views::View* parent, 55 virtual void ViewHierarchyChanged(bool is_add, views::View* parent,
59 views::View* child) OVERRIDE; 56 views::View* child) OVERRIDE;
60 57
61 private: 58 private:
62 // Add or remove observers for events that we care about. 59 // Add or remove observers for events that we care about.
63 void AddObservers(); 60 void AddObservers();
64 void RemoveObservers(); 61 void RemoveObservers();
(...skipping 23 matching lines...) Expand all
88 85
89 // The current reserved rect in view coordinates where contents should not be 86 // The current reserved rect in view coordinates where contents should not be
90 // rendered to draw the resize corner, sidebar mini tabs etc. 87 // rendered to draw the resize corner, sidebar mini tabs etc.
91 // Cached here to update ever changing renderers. 88 // Cached here to update ever changing renderers.
92 gfx::Rect cached_reserved_rect_; 89 gfx::Rect cached_reserved_rect_;
93 90
94 DISALLOW_COPY_AND_ASSIGN(TabContentsContainer); 91 DISALLOW_COPY_AND_ASSIGN(TabContentsContainer);
95 }; 92 };
96 93
97 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_NATIVE_H_ 94 #endif // CHROME_BROWSER_UI_VIEWS_TAB_CONTENTS_TAB_CONTENTS_CONTAINER_NATIVE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698