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

Side by Side Diff: ui/views/controls/image_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
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/controls/image_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CONTROLS_IMAGE_VIEW_H_ 5 #ifndef UI_VIEWS_CONTROLS_IMAGE_VIEW_H_
6 #define UI_VIEWS_CONTROLS_IMAGE_VIEW_H_ 6 #define UI_VIEWS_CONTROLS_IMAGE_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/skia/include/core/SkColor.h" 9 #include "third_party/skia/include/core/SkColor.h"
10 #include "ui/gfx/image/image_skia.h" 10 #include "ui/gfx/image/image_skia.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 void set_interactive(bool interactive) { interactive_ = interactive; } 78 void set_interactive(bool interactive) { interactive_ = interactive; }
79 79
80 void SetFocusPainter(std::unique_ptr<Painter> focus_painter); 80 void SetFocusPainter(std::unique_ptr<Painter> focus_painter);
81 81
82 // Overriden from View: 82 // Overriden from View:
83 gfx::Size GetPreferredSize() const override; 83 gfx::Size GetPreferredSize() const override;
84 void OnFocus() override; 84 void OnFocus() override;
85 void OnBlur() override; 85 void OnBlur() override;
86 void OnPaint(gfx::Canvas* canvas) override; 86 void OnPaint(gfx::Canvas* canvas) override;
87 void GetAccessibleState(ui::AXViewState* state) override; 87 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
88 const char* GetClassName() const override; 88 const char* GetClassName() const override;
89 bool GetTooltipText(const gfx::Point& p, 89 bool GetTooltipText(const gfx::Point& p,
90 base::string16* tooltip) const override; 90 base::string16* tooltip) const override;
91 bool CanProcessEventsWithinSubtree() const override; 91 bool CanProcessEventsWithinSubtree() const override;
92 92
93 private: 93 private:
94 void OnPaintImage(gfx::Canvas* canvas); 94 void OnPaintImage(gfx::Canvas* canvas);
95 95
96 // Returns true if |img| is the same as the last image we painted. This is 96 // Returns true if |img| is the same as the last image we painted. This is
97 // intended to be a quick check, not exhaustive. In other words it's possible 97 // intended to be a quick check, not exhaustive. In other words it's possible
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void* last_painted_bitmap_pixels_; 134 void* last_painted_bitmap_pixels_;
135 135
136 std::unique_ptr<views::Painter> focus_painter_; 136 std::unique_ptr<views::Painter> focus_painter_;
137 137
138 DISALLOW_COPY_AND_ASSIGN(ImageView); 138 DISALLOW_COPY_AND_ASSIGN(ImageView);
139 }; 139 };
140 140
141 } // namespace views 141 } // namespace views
142 142
143 #endif // UI_VIEWS_CONTROLS_IMAGE_VIEW_H_ 143 #endif // UI_VIEWS_CONTROLS_IMAGE_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/controls/image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698