Well no, not "every right".
The "rights", here, do not favour the shareholders of a corporation. The CEO, being an employee of the corporation is, like every other employee, not subject to being fired by shareholders.
Of course, the CEO can be fired (e.g for incompetence, or for acting against the corp's interests) -- just not by the shareholders.
There is no statute that says an employee cannot be fired (although some work-contracts have that effect.) The statute gives employees the right to receive money compensation if they are discriminated against on one of the forbidden grounds.
The Ontario Human Rights Code contains these provisions (presumably, cal. has similar.)
Employment
5. (1) Every person has a right to equal treatment with respect to employment without discrimination because of sexual orientation, gender identity, gender expression, age, record of offences, marital status, family status or disability.
Harassment in employment
(2) Every person who is an employee has a right to freedom from harassment in the workplace by the employer or agent of the employer or by another employee because of race, ancestry, place of origin, colour, ethnic origin, citizenship, creed, sexual orientation, gender identity, gender expression, age, record of offences, marital status, family status or disability.
Announced intention to discriminate
13. (1) A right under Part I is infringed by a person who publishes or displays before the public . any notice, sign, symbol, emblem, or other similar representation that indicates the intention of the person to infringe a right under Part I or that is intended by the person to incite the infringement of a right under Part I.
Opinion
(2) Subsection (1) shall not interfere with freedom of expression of opinion.
So, if a CEO of a corporation articulates publicly that he is against gay marriage, an employee of the corp who is, or is looking to become, a gay spouse, just might possibly have a cause of action against the corp, on the grounds that he (the employee) is likely to be discriminated against by the corp -- but, presumably, not unless the CEO goes beyond merely saying he is against it, and says he will ding any employee of his corp that enters a gay-marriage. Merely stating an opinion does not generally amount to announcement of an intention to follow that opinion up with hostile action. It's just an expression of opinion.
The remedies for breach of the Ontario HRC employment safeguards are in the form of money damages to be paid by the employer (the corp) to the discriminated-against employee. So, in effect, a corp is free to discriminate against an employee on the forbidden grounds, provided they are prepared to pay compensation to the employee. In fact, well-heeled bigoted employers do this all the time.
Of course, the employee need not actually be fired by the corp. If the corp allows the employee to be subjected to harassment, whereupon he leaves voluntarily, that can amount to constructive dismissal, and the corp is just as liable for damages as if they had fired him. This is true for the CEO, as for any employee.