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

Side by Side Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.h

Issue 2477463003: Replace ui::AXViewState with AXNodeData and AXActionData (Closed)
Patch Set: Fix test Created 4 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
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 CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 gfx::Rect GetWindowBoundsForClientBounds( 52 gfx::Rect GetWindowBoundsForClientBounds(
53 const gfx::Rect& client_bounds) const override; 53 const gfx::Rect& client_bounds) const override;
54 int NonClientHitTest(const gfx::Point& point) override; 54 int NonClientHitTest(const gfx::Point& point) override;
55 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override; 55 void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) override;
56 void ResetWindowControls() override; 56 void ResetWindowControls() override;
57 void UpdateWindowIcon() override; 57 void UpdateWindowIcon() override;
58 void UpdateWindowTitle() override; 58 void UpdateWindowTitle() override;
59 void SizeConstraintsChanged() override; 59 void SizeConstraintsChanged() override;
60 60
61 // views::View: 61 // views::View:
62 void GetAccessibleState(ui::AXViewState* state) override; 62 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
63 63
64 // views::ButtonListener: 64 // views::ButtonListener:
65 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 65 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
66 66
67 // views::MenuButtonListener: 67 // views::MenuButtonListener:
68 void OnMenuButtonClicked(views::MenuButton* source, 68 void OnMenuButtonClicked(views::MenuButton* source,
69 const gfx::Point& point, 69 const gfx::Point& point,
70 const ui::Event* event) override; 70 const ui::Event* event) override;
71 71
72 // TabIconViewModel: 72 // TabIconViewModel:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Memory is owned by the caller. 108 // Memory is owned by the caller.
109 views::ImageButton* InitWindowCaptionButton(int normal_image_id, 109 views::ImageButton* InitWindowCaptionButton(int normal_image_id,
110 int hot_image_id, 110 int hot_image_id,
111 int pushed_image_id, 111 int pushed_image_id,
112 int mask_image_id, 112 int mask_image_id,
113 int accessibility_string_id, 113 int accessibility_string_id,
114 ViewID view_id); 114 ViewID view_id);
115 115
116 // Returns the thickness of the border that makes up the window frame edges. 116 // Returns the thickness of the border that makes up the window frame edges.
117 // This does not include any client edge. If |restored| is true, this is 117 // This does not include any client edge. If |restored| is true, this is
118 // calculated as if the window was restored, regardless of its current state. 118 // calculated as if the window was restored, regardless of its current
119 // node_data.
119 int FrameBorderThickness(bool restored) const; 120 int FrameBorderThickness(bool restored) const;
120 121
121 // Returns true if the specified point is within the avatar menu buttons. 122 // Returns true if the specified point is within the avatar menu buttons.
122 bool IsWithinAvatarMenuButtons(const gfx::Point& point) const; 123 bool IsWithinAvatarMenuButtons(const gfx::Point& point) const;
123 124
124 // Returns the thickness of the entire nonclient left, right, and bottom 125 // Returns the thickness of the entire nonclient left, right, and bottom
125 // borders, including both the window frame and any client edge. 126 // borders, including both the window frame and any client edge.
126 int NonClientBorderThickness() const; 127 int NonClientBorderThickness() const;
127 128
128 // Returns the bounds of the titlebar icon (or where the icon would be if 129 // Returns the bounds of the titlebar icon (or where the icon would be if
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Background painter for the window frame. 170 // Background painter for the window frame.
170 std::unique_ptr<views::FrameBackground> frame_background_; 171 std::unique_ptr<views::FrameBackground> frame_background_;
171 172
172 // Observer that handles platform dependent configuration. 173 // Observer that handles platform dependent configuration.
173 std::unique_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_; 174 std::unique_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_;
174 175
175 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); 176 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView);
176 }; 177 };
177 178
178 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 179 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698